[CP] [CP] Add diagnostic log for detection of schema mgr ref leak

This commit is contained in:
obdev
2022-08-25 18:15:35 +08:00
committed by wangzelin.wzl
parent 4e81072cd2
commit 50b76d0245
36 changed files with 134 additions and 30 deletions

View File

@ -1735,7 +1735,7 @@ int ObMultiVersionSchemaService::add_schema_mgr_info(ObSchemaGetterGuard& schema
ret = OB_SCHEMA_EAGAIN;
LOG_WARN("tenant schema is not readable now", K(ret), K(tenant_id), K(snapshot_version), K(schema_status));
} else {
ObSchemaMgrHandle handle;
ObSchemaMgrHandle handle(schema_guard.mod_);
ObSchemaMgrInfo schema_mgr_info(tenant_id, snapshot_version, schema_mgr, handle, schema_status);
int64_t count = schema_guard.schema_mgr_infos_.count();
// Guaranteed to be monotonically increasing when inserted