fixde memory leak after remove tenant on arbserver.

This commit is contained in:
HaHaJeff
2023-02-07 16:52:48 +08:00
committed by ob-robot
parent a06c0fb826
commit a8767462ad
14 changed files with 37 additions and 25 deletions

View File

@ -2368,11 +2368,18 @@ OB_INLINE int64_t &ob_get_cluster_id()
return cluster_id;
}
OB_INLINE int64_t &ob_get_arb_tenant_id()
{
RLOCAL(int64_t, arb_tenant_id);
return arb_tenant_id;
}
#define GETTID() ob_gettid()
#define GETTNAME() ob_get_tname()
#define GET_TENANT_ID() ob_get_tenant_id()
#define gettid GETTID
#define GET_CLUSTER_ID() ob_get_cluster_id()
#define GET_ARB_TENANT_ID() ob_get_arb_tenant_id()
//for explain
#define LEFT_BRACKET "("