diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2010-12-16 23:43:52 +0300 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2010-12-16 23:43:52 +0300 |
commit | c696fb6ef34d967b2b6383a333802df14c975d94 (patch) | |
tree | 3238b7260f9f5fdf28723bf3dcd582b762e4f1e3 /sql/multi_range_read.h | |
parent | 8dc612e6abfadf4e0b20ebc69243e25fcd429f53 (diff) | |
download | mariadb-git-c696fb6ef34d967b2b6383a333802df14c975d94.tar.gz |
Better comments
Diffstat (limited to 'sql/multi_range_read.h')
-rw-r--r-- | sql/multi_range_read.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sql/multi_range_read.h b/sql/multi_range_read.h index 2d0c1486aba..d305346d1f3 100644 --- a/sql/multi_range_read.h +++ b/sql/multi_range_read.h @@ -305,9 +305,15 @@ private: /* TRUE == reached eof when enumerating ranges */ bool source_exhausted; - /* TODO */ - /*uchar *saved_key_tuple;*/ + /* + Space where we save the rowid of the last record we've returned. This is + needed for the cases where index scan is interrupted by some other activity + that destroys contents in file->record[0] (which some storage engines use + to store the last rowid value) + */ uchar *saved_rowid; + + /* TRUE <=> saved_rowid has the last saved rowid */ bool have_saved_rowid; static int compare_keys(void* arg, uchar* key1, uchar* key2); @@ -363,10 +369,6 @@ private: /* Buffer to store (rowid, range_id) pairs */ Lifo_buffer *rowid_buffer; - /* rowid_buffer.read() will set the following: */ - //uchar *rowid; - //uchar *rowids_range_id; - int refill_from_index_reader(); }; |