[FIX] read row locked by current transaction need check in case of leader revoked

This commit is contained in:
chinaxing 2021-08-16 19:17:45 +08:00 committed by wangzelin.wzl
parent 67e7063c4e
commit 1800b15f9b

View File

@ -306,6 +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()) {
can_read_by_sql_no = true;
}
if (can_read_by_sql_no) {
if (query_flag.is_read_latest()) {