| 25811 | */ |
| 25812 | |
| 25813 | bool |
| 25814 | JOIN_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 | |
| 25830 | static int |
no test coverage detected