add diagnose virtual table

This commit is contained in:
obdev
2022-11-07 04:35:44 +00:00
committed by wangzelin.wzl
parent e78a327f06
commit 55f776959e
42 changed files with 1468 additions and 112 deletions

View File

@ -44,8 +44,9 @@ TEST(TestRoleChangeHander, test_basic_func)
ObRoleChangeHandler handler;
ObLogBaseType type = ObLogBaseType::TRANS_SERVICE_LOG_BASE_TYPE;
MockRoleChangeHandler mock_handler;
RCDiagnoseInfo unused_diagnose_info;
handler.register_handler(type, &mock_handler);
handler.switch_to_leader();
handler.switch_to_leader(unused_diagnose_info);
handler.switch_to_follower_forcedly();
handler.switch_to_follower_gracefully();
}