Skip to content

Commit

Permalink
Fix bug with schedulable_threads
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge committed Dec 31, 2024
1 parent 5662eee commit b6166c4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl<Tx: TransactionWithMeta> PrioGraphScheduler<Tx> {
&pre_lock_filter,
&mut blocking_locks,
&mut self.account_locks,
num_threads,
schedulable_threads,
|thread_set| {
Self::select_thread(
thread_set,
Expand Down Expand Up @@ -576,7 +576,7 @@ fn try_schedule_transaction<Tx: TransactionWithMeta>(
pre_lock_filter: impl Fn(&Tx) -> bool,
blocking_locks: &mut ReadWriteAccountSet,
account_locks: &mut ThreadAwareAccountLocks,
num_threads: usize,
schedulable_threads: ThreadSet,
thread_selector: impl Fn(ThreadSet) -> ThreadId,
) -> Result<TransactionSchedulingInfo<Tx>, TransactionSchedulingError> {
let transaction = &transaction_state.transaction_ttl().transaction;
Expand Down Expand Up @@ -604,7 +604,7 @@ fn try_schedule_transaction<Tx: TransactionWithMeta>(
let Some(thread_id) = account_locks.try_lock_accounts(
write_account_locks,
read_account_locks,
ThreadSet::any(num_threads),
schedulable_threads,
thread_selector,
) else {
blocking_locks.take_locks(transaction);
Expand Down

0 comments on commit b6166c4

Please sign in to comment.