[CP] Skip single tablet optimization for max commit ts on followers

This commit is contained in:
KyrielightWei
2024-08-05 14:28:33 +00:00
committed by ob-robot
parent 2826929b19
commit aaba9dd789

View File

@ -831,7 +831,7 @@ int ObSqlTransControl::stmt_setup_snapshot_(ObSQLSessionInfo *session,
first_ls_id,
stmt_expire_ts,
snapshot))) {
} else if (is_single_tablet) {
} else if (is_single_tablet && snapshot.snapshot_ls_role_ != ObRole::FOLLOWER) {
// performance for single tablet scenario
local_single_ls_plan = true;
} else {