[master] tx_desc used by px_worker relese without lock protected

This commit is contained in:
chinaxing
2023-07-17 13:12:20 +00:00
committed by ob-robot
parent a1d13b8c78
commit b3db035771
8 changed files with 20 additions and 6 deletions

View File

@ -467,6 +467,7 @@ int ObPxSQCProxy::report(int end_ret) const
(void)MTL(transaction::ObTransService*)->merge_tx_state(*sqc_tx_desc, *task_tx_desc);
(void)MTL(transaction::ObTransService*)->release_tx(*task_tx_desc);
} else {
sql::ObSQLSessionInfo::LockGuard guard(session->get_thread_data_lock());
sqc_tx_desc = task_tx_desc;
}
task_tx_desc = NULL;