free retain_ctx_func memory in part_ctx's destroy

This commit is contained in:
KyrielightWei
2023-07-20 06:12:29 +00:00
committed by ob-robot
parent d98be905ec
commit 4a7f055b47

View File

@ -243,6 +243,11 @@ void ObPartTransCtx::destroy()
FORCE_PRINT_TRACE(tlog_, "[missing callback scheduler] ");
}
if (OB_NOT_NULL(retain_ctx_func_ptr_)) {
TRANS_LOG(INFO, "the memory of retain_ctx_func_ptr is active, need free", K(ret),
KP(retain_ctx_func_ptr_), KPC(retain_ctx_func_ptr_), KPC(this));
}
(void)try_gc_retain_ctx_func_();
if (NULL != tlog_) {
print_trace_log_if_necessary_();