[RS]fix RS start fail while get_master_rs timeout

This commit is contained in:
maosy
2021-07-27 15:15:14 +08:00
committed by wangzelin.wzl
parent f0726b6b6c
commit 85d7d1e6f8
2 changed files with 23 additions and 16 deletions

View File

@ -100,8 +100,8 @@ private:
int renew_master_rootserver_v2();
int do_detect_master_rs_v2(common::ObIArray<common::ObAddr>& rs_list);
int renew_master_rootserver_v3();
int do_detect_master_rs_v3(
const common::ObAddr& dst_server, const int64_t cluster_id, obrpc::ObGetRootserverRoleResult& result);
int do_detect_master_rs_v3(const common::ObAddr& dst_server, const int64_t cluster_id, const int64_t rpc_timeout,
obrpc::ObGetRootserverRoleResult& result);
private:
static const int64_t DETECT_MASTER_TIMEOUT = 1 * 1000 * 1000; // 1s