fix core when print savepoint
This commit is contained in:
@ -523,7 +523,6 @@ public:
|
|||||||
K_(flags_.BLOCK),
|
K_(flags_.BLOCK),
|
||||||
K_(flags_.REPLICA),
|
K_(flags_.REPLICA),
|
||||||
K_(can_elr),
|
K_(can_elr),
|
||||||
K_(savepoints),
|
|
||||||
K_(cflict_txs),
|
K_(cflict_txs),
|
||||||
K_(abort_cause),
|
K_(abort_cause),
|
||||||
K_(commit_expire_ts),
|
K_(commit_expire_ts),
|
||||||
|
@ -1820,6 +1820,8 @@ int ObXACtx::create_xa_savepoint_if_need_(const ObXATransID &xid, const uint32_t
|
|||||||
if (info.is_first_stmt_) {
|
if (info.is_first_stmt_) {
|
||||||
if (OB_FAIL(MTL(transaction::ObTransService *)->create_explicit_savepoint(*tx_desc_, PL_XA_IMPLICIT_SAVEPOINT, session_id))) {
|
if (OB_FAIL(MTL(transaction::ObTransService *)->create_explicit_savepoint(*tx_desc_, PL_XA_IMPLICIT_SAVEPOINT, session_id))) {
|
||||||
TRANS_LOG(WARN, "create xa savepoint fail", K(ret), K(xid), K(session_id), K(*this));
|
TRANS_LOG(WARN, "create xa savepoint fail", K(ret), K(xid), K(session_id), K(*this));
|
||||||
|
} else {
|
||||||
|
TRANS_LOG(INFO, "create pl xa savepoint success", K(ret), K(xid), K(session_id), K(*this));
|
||||||
}
|
}
|
||||||
info.is_first_stmt_ = false;
|
info.is_first_stmt_ = false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user