[4.1] fix get tx data from tx_ctx
This commit is contained in:
parent
eab93f73fd
commit
5b1587cae5
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user