From eb391690700cf5ec5bc5f727ace515fa01dcdf5c Mon Sep 17 00:00:00 2001 From: obdev Date: Thu, 3 Nov 2022 03:06:05 +0000 Subject: [PATCH] modify replayable_point generation interval --- src/rootserver/ob_primary_ls_service.cpp | 2 +- src/rootserver/ob_tenant_recovery_reportor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rootserver/ob_primary_ls_service.cpp b/src/rootserver/ob_primary_ls_service.cpp index 32c9ead153..9d5dcdaa33 100755 --- a/src/rootserver/ob_primary_ls_service.cpp +++ b/src/rootserver/ob_primary_ls_service.cpp @@ -2049,7 +2049,7 @@ void ObPrimaryLSService::do_work() int64_t idle_time_us = 100 * 1000L; int tmp_ret = OB_SUCCESS; while (!has_set_stop()) { - idle_time_us = 10 * 1000 * 1000L; + idle_time_us = is_meta_tenant(tenant_id_) ? 100 * 1000L : 10 * 1000 * 1000L; { ObCurTraceId::init(GCONF.self_addr_); share::schema::ObSchemaGetterGuard schema_guard; diff --git a/src/rootserver/ob_tenant_recovery_reportor.h b/src/rootserver/ob_tenant_recovery_reportor.h index 336d091472..33bdfe7c6b 100644 --- a/src/rootserver/ob_tenant_recovery_reportor.h +++ b/src/rootserver/ob_tenant_recovery_reportor.h @@ -70,7 +70,7 @@ private: int update_ls_recovery_stat_(); public: - static constexpr int64_t IDLE_TIME_US = 500 * 1000; + static constexpr int64_t IDLE_TIME_US = 100 * 1000; TO_STRING_KV(K_(is_inited), K_(tenant_id), K_(tenant_info)); private: bool is_inited_;