From c5229976a4d6a9a961eaf2bf3ed98d36a9ddac00 Mon Sep 17 00:00:00 2001 From: YangEfei Date: Fri, 10 May 2024 05:23:58 +0000 Subject: [PATCH] [TABLELOCK] fix core of GC thread releasing locks --- src/storage/tablelock/ob_lock_func_executor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/storage/tablelock/ob_lock_func_executor.cpp b/src/storage/tablelock/ob_lock_func_executor.cpp index 21164303f1..5a6de74ee6 100644 --- a/src/storage/tablelock/ob_lock_func_executor.cpp +++ b/src/storage/tablelock/ob_lock_func_executor.cpp @@ -1067,6 +1067,7 @@ int ObReleaseAllLockExecutor::execute(const int64_t raw_owner_id) OZ (session.init(0 /*default session id*/, 0 /*default proxy id*/, &allocator)); + OX (session.set_inner_session()); OZ (GCTX.schema_service_->get_tenant_schema_guard(tenant_id, guard)); OZ (guard.get_tenant_info(tenant_id, tenant_schema)); OZ (session.init_tenant(tenant_schema->get_tenant_name_str(), tenant_id));