1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

- Fix compiler warning

- Better warnings
This commit is contained in:
Sergey Petrunya
2010-12-15 10:45:08 +03:00
parent eafc4bef33
commit 802db7a64b
2 changed files with 8 additions and 1 deletions

View File

@ -1122,7 +1122,7 @@ bool DsMrr_impl::setup_buffer_sharing(uint key_size_in_keybuf,
(ulonglong2double(rowids_size) + key_buff_elem_size));
size_t bytes_for_rowids=
round(fraction_for_rowids * (full_buf_end - full_buf));
(size_t)round(fraction_for_rowids * (full_buf_end - full_buf));
long bytes_for_keys= (full_buf_end - full_buf) - bytes_for_rowids;

View File

@ -346,7 +346,14 @@ private:
/* TRUE <=> index_reader->refill_buffer() call has returned EOF */
bool index_reader_exhausted;
/*
TRUE <=> We should call index_reader->refill_buffer(). This happens if
1. we've made index_reader->get_next() call which returned EOF
2. we haven't made any index_reader calls (and our first call should
be index_reader->refill_buffer(initial=TRUE)
*/
bool index_reader_needs_refill;
/* TRUE <=> need range association, buffers hold {rowid, range_id} pairs */
bool is_mrr_assoc;