set the initial value of wrs to scn min

This commit is contained in:
obdev
2022-11-28 02:55:06 +00:00
committed by ob-robot
parent 99d4f56fec
commit 87a9357186
406 changed files with 6473 additions and 50308 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();
}