提交 5b1587ca 编写于 作者: C chinaxing 提交者: wangzelin.wzl

[4.1] fix get tx data from tx_ctx

上级 eab93f73
......@@ -435,10 +435,11 @@ int ObCtxTxData::add_undo_action(ObUndoAction &undo_action, storage::ObUndoStatu
int ObCtxTxData::Guard::get_tx_data(const ObTxData *&tx_data) const
{
int ret = OB_SUCCESS;
if (NULL == host_.tx_data_) {
auto tmp_tx_data = host_.tx_data_;
if (NULL == tmp_tx_data) {
ret = OB_TRANS_CTX_NOT_EXIST;
} else {
tx_data = host_.tx_data_;
tx_data = tmp_tx_data;
}
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册