MCPcopy Create free account
hub / github.com/MariaDB/server / sort_table

Method sort_table

sql/sql_select.cc:25813–25827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25811*/
25812
25813bool
25814JOIN_TAB::sort_table()
25815{
25816 int rc;
25817 DBUG_PRINT("info",("Sorting for index"));
25818 THD_STAGE_INFO(join->thd, stage_creating_sort_index);
25819 DBUG_ASSERT(join->ordered_index_usage != (filesort->order == join->order ?
25820 JOIN::ordered_index_order_by :
25821 JOIN::ordered_index_group_by));
25822 rc= create_sort_index(join->thd, join, this, NULL);
25823 /* Deactivate rowid filter if it was used when creating sort index */
25824 if (rowid_filter)
25825 table->file->rowid_filter_is_active= false;
25826 return (rc != 0);
25827}
25828
25829
25830static int

Callers 1

join_init_read_recordFunction · 0.80

Calls 1

create_sort_indexFunction · 0.85

Tested by

no test coverage detected