From f5f78d4bf846ba8d1c8884a77805fe4a977aed20 Mon Sep 17 00:00:00 2001 From: William Wen Date: Fri, 20 Sep 2024 16:41:16 +0800 Subject: [PATCH] fix test --- .../src/hummock/event_handler/hummock_event_handler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/src/hummock/event_handler/hummock_event_handler.rs b/src/storage/src/hummock/event_handler/hummock_event_handler.rs index 82cdc14838946..61b75aecd4066 100644 --- a/src/storage/src/hummock/event_handler/hummock_event_handler.rs +++ b/src/storage/src/hummock/event_handler/hummock_event_handler.rs @@ -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 });