Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Nov 30, 2023
1 parent 5085593 commit e3d3436
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scheduler-pool/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,7 @@ where
tid_sender
.send(rustix::thread::gettid().as_raw_nonzero().get())
.unwrap();
let (ready_to_retry, never_to_retry) = (&ready(), &never());

while !end_thread {
loop {
Expand Down Expand Up @@ -753,7 +754,7 @@ where
}
}
},
recv(if state_machine.has_retryable_task() { ready() } else { never() }) -> now => {
recv(if state_machine.has_retryable_task() { ready_to_retry } else { never_to_retry }) -> now => {
assert!(now.is_ok());
if let Some(task) = state_machine.schedule_retryable_task() {
blocked_transaction_sessioned_sender
Expand Down
1 change: 1 addition & 0 deletions scheduler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ impl TaskStatus {

#[derive(Debug)]
pub struct TaskInner {
// put this field out of this struct for maximum space efficiency?
unique_weight: UniqueWeight,
transaction: SanitizedTransaction, // actually should be Bundle
task_status: SchedulerCell<TaskStatus>,
Expand Down

0 comments on commit e3d3436

Please sign in to comment.