diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-02-01 17:20:35 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-02-13 18:12:05 +0100 |
commit | bf8f70a47c0fb606b52ecea94dd450b22cd02098 (patch) | |
tree | e8ba55e54d3cc456b0564886b8f52934398c552d /sql/opt_range.cc | |
parent | 0254f1a6e0e1dbf4fd524d9e2bfd0c1005e16139 (diff) | |
download | mariadb-git-bf8f70a47c0fb606b52ecea94dd450b22cd02098.tar.gz |
cleanup: mark_columns_used_by_index_no_reset in opt_range.cc
use table->mark_columns_used_by_index, don't copy it
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r-- | sql/opt_range.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index d41c4a45276..58c6d8d0b2d 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -1488,7 +1488,6 @@ int QUICK_RANGE_SELECT::init_ror_merged_scan(bool reuse_handler, { DBUG_RETURN(1); } - head->column_bitmaps_set(&column_bitmap, &column_bitmap, &column_bitmap); goto end; } @@ -1513,8 +1512,6 @@ int QUICK_RANGE_SELECT::init_ror_merged_scan(bool reuse_handler, goto failure; /* purecov: inspected */ } - head->column_bitmaps_set(&column_bitmap, &column_bitmap, &column_bitmap); - if (file->ha_external_lock(thd, F_RDLCK)) goto failure; @@ -1528,7 +1525,6 @@ int QUICK_RANGE_SELECT::init_ror_merged_scan(bool reuse_handler, last_rowid= file->ref; end: - DBUG_ASSERT(head->read_set == &column_bitmap); /* We are only going to read key fields and call position() on 'file' The following sets head->read_set (== column_bitmap) to only use this @@ -1536,11 +1532,9 @@ end: */ org_file= head->file; head->file= file; - head->mark_columns_used_by_index_no_reset(index, &column_bitmap); - - if (!head->no_keyread) - head->file->ha_start_keyread(); + head->column_bitmaps_set_no_signal(&column_bitmap, &column_bitmap, &column_bitmap); + head->mark_columns_used_by_index_in_bitmap(index, &column_bitmap); head->prepare_for_position(); head->file= org_file; |