1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-35194 non-BNL join fails on assertion

with streaming implemened mhnsw no longer needs to know
the LIMIT in advance. let's just cap it to avoid allocating
too much memory for the one step result set
This commit is contained in:
Sergei Golubchik
2024-10-19 20:33:57 +02:00
parent 597e34d000
commit 926b339b93
4 changed files with 29 additions and 1 deletions

View File

@@ -25150,7 +25150,6 @@ join_read_first(JOIN_TAB *tab)
DBUG_ASSERT(tab->sorted);
DBUG_ASSERT(tab->join->order);
DBUG_ASSERT(tab->join->order->next == NULL);
DBUG_ASSERT(tab->join->select_limit < HA_POS_ERROR);
tab->read_record.read_record_func= join_hlindex_read_next;
error= tab->table->hlindex_read_first(tab->index, *tab->join->order->item,
tab->join->select_limit);