From 6a7db74811029455757ed59f41420368feda1d79 Mon Sep 17 00:00:00 2001 From: obdev Date: Fri, 24 Feb 2023 16:15:19 +0000 Subject: [PATCH] fix core when print savepoint --- src/storage/tx/ob_trans_define_v4.h | 1 - src/storage/tx/ob_xa_ctx.cpp | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/storage/tx/ob_trans_define_v4.h b/src/storage/tx/ob_trans_define_v4.h index 97fb176148..2614377303 100644 --- a/src/storage/tx/ob_trans_define_v4.h +++ b/src/storage/tx/ob_trans_define_v4.h @@ -523,7 +523,6 @@ public: K_(flags_.BLOCK), K_(flags_.REPLICA), K_(can_elr), - K_(savepoints), K_(cflict_txs), K_(abort_cause), K_(commit_expire_ts), diff --git a/src/storage/tx/ob_xa_ctx.cpp b/src/storage/tx/ob_xa_ctx.cpp index cb19f2ac67..9df3776c0e 100644 --- a/src/storage/tx/ob_xa_ctx.cpp +++ b/src/storage/tx/ob_xa_ctx.cpp @@ -1820,6 +1820,8 @@ int ObXACtx::create_xa_savepoint_if_need_(const ObXATransID &xid, const uint32_t if (info.is_first_stmt_) { 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)); + } else { + TRANS_LOG(INFO, "create pl xa savepoint success", K(ret), K(xid), K(session_id), K(*this)); } info.is_first_stmt_ = false; }