[CP] reset get_sql_arena_allocator() after rpc callback finished

This commit is contained in:
liucc1997
2023-12-27 04:48:57 +00:00
committed by ob-robot
parent 047f99ae1a
commit 7cda1ea330
2 changed files with 2 additions and 0 deletions

View File

@ -144,6 +144,7 @@ int async_cb(easy_request_t *r)
if (!OB_SUCC(ret)) {
LOG_WARN("process async request fail", K(r), K(ret), K(pcode));
}
THIS_WORKER.get_sql_arena_allocator().reset();
const int64_t cur_time = ObTimeUtility::current_time();
const int64_t total_time = cur_time - start_time;

View File

@ -157,6 +157,7 @@ int ObAsyncRespCallback::handle_resp(int io_err, const char* buf, int64_t sz)
}
pool_.destroy();
ObCurTraceId::reset();
THIS_WORKER.get_sql_arena_allocator().reset();
const int64_t cur_time = ObTimeUtility::current_time();
const int64_t total_time = cur_time - start_time;
const int64_t decode_time = after_decode_time - start_time;