[CP] add this_work session set
This commit is contained in:
committed by
wangzelin.wzl
parent
143dd5e6d0
commit
385bda30b9
@ -719,6 +719,7 @@ int ObMPStmtFetch::process()
|
||||
ObSQLSessionInfo &session = *sess;
|
||||
int64_t tenant_version = 0;
|
||||
int64_t sys_version = 0;
|
||||
THIS_WORKER.set_session(sess);
|
||||
ObSQLSessionInfo::LockGuard lock_guard(session.get_query_lock());
|
||||
session.set_current_trace_id(ObCurTraceId::get_trace_id());
|
||||
session.get_raw_audit_record().request_memory_used_ = 0;
|
||||
@ -780,6 +781,7 @@ int ObMPStmtFetch::process()
|
||||
if (!THIS_WORKER.need_retry()) {
|
||||
flush_ret = flush_buffer(true);
|
||||
}
|
||||
THIS_WORKER.set_session(NULL);
|
||||
if (sess != NULL) {
|
||||
revert_session(sess); //current ignore revert session ret
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user