提交 a0d06ed7 编写于 作者: O obdev 提交者: ob-robot

[CP] [CP] fix transaction virtual table access error

上级 e88e59a6
......@@ -4219,6 +4219,10 @@ int ObPartTransCtxMgr::iterate_trans_stat_without_partition(ObTransStatIterator&
tg.click();
TRANS_LOG(DEBUG, "ObTransStatIterator set ready success");
}
// ignore retcode when virtual table access error
if (OB_PARTITION_NOT_EXIST == ret || OB_EAGAIN == ret) {
ret = OB_SUCCESS;
}
return ret;
}
......@@ -4243,6 +4247,10 @@ int ObPartTransCtxMgr::print_all_trans_ctx(const ObPartitionKey& partition)
const bool verbose = true;
ctx_mgr->print_all_ctx(ObPartitionTransCtxMgr::MAX_HASH_ITEM_PRINT, verbose);
}
// ignore retcode when virtual table access error
if (OB_PARTITION_NOT_EXIST == ret || OB_EAGAIN == ret) {
ret = OB_SUCCESS;
}
return ret;
}
......@@ -4269,6 +4277,10 @@ int ObPartTransCtxMgr::iterate_trans_lock_stat(
} else {
TRANS_LOG(DEBUG, "ObTransLockStatIterator set ready success", K(partition));
}
// ignore retcode when virtual table access error
if (OB_PARTITION_NOT_EXIST == ret || OB_EAGAIN == ret) {
ret = OB_SUCCESS;
}
return ret;
}
......@@ -4295,6 +4307,10 @@ int ObPartTransCtxMgr::iterate_trans_result_info_in_TRIM(
} else {
TRANS_LOG(DEBUG, "ObTransResultInfoStatIterator set ready success", K(partition));
}
// ignore retcode when virtual table access error
if (OB_PARTITION_NOT_EXIST == ret || OB_EAGAIN == ret) {
ret = OB_SUCCESS;
}
return ret;
}
......@@ -4322,6 +4338,10 @@ int ObPartTransCtxMgr::iterate_duplicate_partition_stat(
} else {
TRANS_LOG(DEBUG, "iterate duplicate partition stat success", K(partition));
}
// ignore retcode when virtual table access error
if (OB_PARTITION_NOT_EXIST == ret || OB_EAGAIN == ret) {
ret = OB_SUCCESS;
}
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册