summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorAlexey Kopytov <Alexey.Kopytov@Sun.com>2010-05-27 14:08:44 +0400
committerAlexey Kopytov <Alexey.Kopytov@Sun.com>2010-05-27 14:08:44 +0400
commita2e7f632cfb30dcf7338dbb78bb19f94d4201323 (patch)
tree74f527c3a5cc36fd085cb149e7fbef7e97c5af47 /sql/table.cc
parent71e534542bfb6b2cc40909a8bb975fc7564998d0 (diff)
parent1d0acc7754a44613d2ad56dc2231f20a1bedf718 (diff)
downloadmariadb-git-a2e7f632cfb30dcf7338dbb78bb19f94d4201323.tar.gz
Automerge.
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/sql/table.cc b/sql/table.cc
index 5bd753d7ca9..2b6d55d0cb5 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -4438,6 +4438,27 @@ void TABLE::mark_columns_used_by_index(uint index)
/*
+ Add fields used by a specified index to the table's read_set.
+
+ NOTE:
+ The original state can be restored with
+ restore_column_maps_after_mark_index().
+*/
+
+void st_table::add_read_columns_used_by_index(uint index)
+{
+ MY_BITMAP *bitmap= &tmp_set;
+ DBUG_ENTER("st_table::add_read_columns_used_by_index");
+
+ set_keyread(TRUE);
+ bitmap_copy(bitmap, read_set);
+ mark_columns_used_by_index_no_reset(index, bitmap);
+ column_bitmaps_set(bitmap, write_set);
+ DBUG_VOID_RETURN;
+}
+
+
+/*
Restore to use normal column maps after key read
NOTES