[CP] to issue<58095770>:add return value of set_snapshot interface

This commit is contained in:
hanr881
2024-08-01 12:22:59 +00:00
committed by ob-robot
parent 7287fd8471
commit eaaf4a75f2
7 changed files with 32 additions and 26 deletions

View File

@ -1605,7 +1605,7 @@ int ObTableCtx::init_trans(transaction::ObTxDesc *trans_desc,
sql::ObSQLSessionInfo &session = get_session_info();
sql::ObSQLSessionInfo::LockGuard guard(session.get_thread_data_lock());
session.get_tx_desc() = trans_desc;
exec_ctx_.get_das_ctx().set_snapshot(tx_snapshot);
OZ (exec_ctx_.get_das_ctx().set_snapshot(tx_snapshot));
}
return ret;