[CP] not get data version when tenant id is not valid
This commit is contained in:
parent
99a808448b
commit
a20c4cdcf9
@ -2968,7 +2968,9 @@ void ObSQLSessionInfo::ObCachedTenantConfigInfo::refresh()
|
||||
}
|
||||
// 缓存data version 用于性能优化
|
||||
uint64_t data_version = 0;
|
||||
if (OB_TMP_FAIL(GET_MIN_DATA_VERSION(effective_tenant_id, data_version))) {
|
||||
if (!is_valid_tenant_id(effective_tenant_id)) {
|
||||
LOG_DEBUG("invalid tenant id", K_(saved_tenant_info), K(effective_tenant_id));
|
||||
} else if (OB_TMP_FAIL(GET_MIN_DATA_VERSION(effective_tenant_id, data_version))) {
|
||||
LOG_WARN_RET(tmp_ret, "get data version fail", "ret", tmp_ret, K(effective_tenant_id));
|
||||
} else {
|
||||
ATOMIC_STORE(&data_version_, data_version);
|
||||
|
Loading…
x
Reference in New Issue
Block a user