fix sys tenant no fast freeze bug

This commit is contained in:
zh0
2021-07-27 11:45:21 +08:00
committed by wangzelin.wzl
parent a0978c20a8
commit acef9d21e9
4 changed files with 18 additions and 6 deletions

View File

@ -1204,8 +1204,10 @@ int ObPartitionScheduler::schedule_pg(
if (OB_ENTRY_NOT_EXIST != tmp_ret) {
LOG_WARN("Failed to check need fast freeze for hotspot table", K(tmp_ret), K(pg_key));
}
} else if (!need_fast_freeze) {
}
// ignore tmp_ret
if (!need_fast_freeze) {
// do nothing
} else if (OB_SUCCESS != (tmp_ret = partition_service_->minor_freeze(pg_key))) {
LOG_WARN("Failed to schedule fast freeze", K(tmp_ret), K(pg_key));
} else {
@ -2510,8 +2512,7 @@ ObFastFreezeChecker::ObFastFreezeChecker(const int64_t tenant_id)
reset();
if (OB_UNLIKELY(tenant_id == OB_INVALID_TENANT_ID)) {
LOG_WARN("Invalid tenant id to init fast freeze checker", K(tenant_id));
} else if (OB_SYS_TENANT_ID != tenant_id) {
// fast freeze only trigger for user tenant
} else {
tenant_id_ = tenant_id;
omt::ObTenantConfigGuard tenant_config(TENANT_CONF(tenant_id_));
if (tenant_config.is_valid()) {