Add barrier snapshot version for defensive check【4377】

This commit is contained in:
obdev
2022-11-04 04:38:21 +00:00
committed by wangzelin.wzl
parent c259349b07
commit d28594a82f
4 changed files with 27 additions and 7 deletions

View File

@ -457,6 +457,11 @@ int ObMemtableCtx::trans_end(
{
int ret = OB_SUCCESS;
if (commit && INT64_MAX == get_trans_version()) {
TRANS_LOG(ERROR, "unexpected prepare version", K(*this));
// no retcode
}
ret = do_trans_end(commit,
trans_version,
final_log_ts,