Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wenym1 committed Sep 20, 2024
1 parent 1836fec commit f5f78d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -649,12 +649,12 @@ impl HummockEventHandler {

let max_committed_epoch = new_pinned_version.visible_table_committed_epoch();

// only notify local_version_manager when MCE change
self.version_update_notifier_tx.send_if_modified(|state| {
assert_eq!(pinned_version.id(), state.id());
if state.id() == new_pinned_version.id() {
return false;
}
assert!(pinned_version.id() > state.id());
assert!(new_pinned_version.id() > state.id());
*state = new_pinned_version.clone();
true
});
Expand Down

0 comments on commit f5f78d4

Please sign in to comment.