Skip to content

Commit

Permalink
revert transaction view change logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ss-es committed Dec 11, 2024
1 parent 751d7be commit 4b492f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/task-impls/src/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ impl<TYPES: NodeType, I: NodeImplementation<TYPES>, V: Versions> TransactionTask
let view = TYPES::View::new(std::cmp::max(1, **view));

ensure!(
*view > *self.cur_view && *epoch >= self.cur_epoch,
*view > *self.cur_view || *epoch > self.cur_epoch,
debug!(
"Received a view change to an older view and epoch: tried to change view to {:?}\
and epoch {:?} though we are at view {:?} and epoch {:?}",
Expand Down

0 comments on commit 4b492f8

Please sign in to comment.