check tx is aborted before report 4377 in index lookup

This commit is contained in:
chinaxing
2024-04-25 09:55:11 +00:00
committed by ob-robot
parent 79ee35a820
commit 1d8ebf3f45
15 changed files with 77 additions and 45 deletions

View File

@ -577,7 +577,8 @@ TEST_F(TestTxCallbackList, remove_callback_by_clean_unlog_callbacks)
EXPECT_EQ(9, callback_list_.get_length());
int64_t removed_cnt = 0;
EXPECT_EQ(OB_SUCCESS, callback_list_.clean_unlog_callbacks(removed_cnt));
ObFunction<void()> before_remove = []{};
EXPECT_EQ(OB_SUCCESS, callback_list_.clean_unlog_callbacks(removed_cnt, before_remove));
EXPECT_EQ(5, callback_list_.get_length());
EXPECT_EQ(4, rollback_cnt_);