From 7d3f6058073af2dabbde7d71c6cd496e7ceed550 Mon Sep 17 00:00:00 2001 From: Sergei Petrunia Date: Tue, 20 Oct 2026 13:16:54 +0300 Subject: [PATCH] To squash with previous: add an assertion. --- sql/ha_partition.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index 342643a8618..ca3d6211e1e 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -8209,6 +8209,11 @@ int ha_partition::handle_ordered_index_scan(uchar *buf, bool reverse_order) /* Caller has specified reverse_order */ break; case partition_index_first: + /* + We don't call read_with_icp() here as full index scans are not done + with ICP. + */ + DBUG_ASSERT(!pushed_idx_cond); error= file->ha_index_first(rec_buf_ptr); reverse_order= FALSE; break;