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

Function remove_nonrange_trees

sql/opt_range.cc:10423–10445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10421*/
10422
10423static bool remove_nonrange_trees(PARAM *param, SEL_TREE *tree)
10424{
10425 bool res= FALSE;
10426
10427 for (uint i=0; i < param->keys; i++)
10428 {
10429 if (!tree->keys[i])
10430 continue;
10431
10432 if (tree->keys[i]->part == 0)
10433 {
10434 res= TRUE;
10435 continue;
10436 }
10437
10438 /* Mark that records_in_range has not been called */
10439 param->quick_rows[param->real_keynr[i]]= HA_POS_ERROR;
10440 tree->keys[i]= nullptr;
10441 tree->keys_map.clear_bit(i);
10442 }
10443
10444 return !res;
10445}
10446
10447
10448/*

Callers 2

test_quick_selectMethod · 0.85
get_best_disjunct_quickFunction · 0.85

Calls 1

clear_bitMethod · 0.80

Tested by 1

test_quick_selectMethod · 0.68