From 85163268a72c26d4a5c1aa191ed55e1f2d2181e7 Mon Sep 17 00:00:00 2001 From: obdev Date: Thu, 3 Nov 2022 07:08:05 +0000 Subject: [PATCH] modify err_code for registering mds in a inactive trx --- src/storage/tx/ob_trans_service.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/tx/ob_trans_service.cpp b/src/storage/tx/ob_trans_service.cpp index 8356798ef0..c382af8e35 100644 --- a/src/storage/tx/ob_trans_service.cpp +++ b/src/storage/tx/ob_trans_service.cpp @@ -680,8 +680,8 @@ int ObTransService::register_mds_into_tx(ObTxDesc &tx_desc, TRANS_LOG(WARN, "invalid argument", KR(ret), K(tx_desc), K(ls_id), K(type), KP(buf), K(buf_len)); } else if (!tx_desc.is_tx_active()) { - ret = OB_ERR_UNEXPECTED; - TRANS_LOG(ERROR, "txn must in active for register", K(ret)); + ret = OB_TRANS_IS_EXITING; + TRANS_LOG(WARN, "txn must in active for register", K(ret)); } else if (OB_ISNULL(rpc_proxy_)) { ret = OB_NOT_INIT; TRANS_LOG(WARN, "rpc proxy not inited", KR(ret), K(tx_desc), K(ls_id), K(type)); -- GitLab