fix primary_zone not adjust

This commit is contained in:
maosy
2023-03-02 16:15:43 +00:00
committed by ob-robot
parent 86bdd48952
commit 8f2a13e24c
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ void ObCommonLSService::do_work()
} }
} }
if (REACH_TIME_INTERVAL(1 * 1000 * 1000)) { if (REACH_TENANT_TIME_INTERVAL(1 * 1000 * 1000)) {
ret = OB_SUCCESS;//ignore error ret = OB_SUCCESS;//ignore error
if (OB_FAIL(try_update_sys_ls_primary_zone_())) { if (OB_FAIL(try_update_sys_ls_primary_zone_())) {
LOG_WARN("failed to update sys ls primary zone", KR(ret)); LOG_WARN("failed to update sys ls primary zone", KR(ret));

View File

@ -104,7 +104,7 @@ void ObRecoveryLSService::do_work()
idle_time_us = 10 * 1000 * 1000;//10s idle_time_us = 10 * 1000 * 1000;//10s
} }
} }
if (REACH_TIME_INTERVAL(10 * 1000 * 1000)) { // every 10 second if (REACH_TENANT_TIME_INTERVAL(10 * 1000 * 1000)) { // every 10 second
(void)try_tenant_upgrade_end_(); (void)try_tenant_upgrade_end_();
} }
LOG_INFO("[RECOVERY_LS_SERVICE] finish one round", KR(ret), LOG_INFO("[RECOVERY_LS_SERVICE] finish one round", KR(ret),