[FIX] test mvcc-list empty when access

This commit is contained in:
chinaxing 2021-08-17 15:34:07 +08:00 committed by wangzelin.wzl
parent 8bd9721cfb
commit 4791a7335e

View File

@ -306,7 +306,8 @@ bool ObMvccValueIterator::read_by_sql_no(
} else {
can_read_by_sql_no = true;
}
} else if (ctx.is_for_replay() && !iter->is_committed() && iter->get_ctx_descriptor() == ctx.get_ctx_descriptor()) {
} else if (ctx.is_for_replay() && OB_NOT_NULL(iter) && // row may not modified
!iter->is_committed() && iter->get_ctx_descriptor() == ctx.get_ctx_descriptor()) {
can_read_by_sql_no = true;
}
if (can_read_by_sql_no) {