Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
802db7a6
Commit
802db7a6
authored
Dec 15, 2010
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fix compiler warning
- Better warnings
parent
eafc4bef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
sql/multi_range_read.cc
sql/multi_range_read.cc
+1
-1
sql/multi_range_read.h
sql/multi_range_read.h
+7
-0
No files found.
sql/multi_range_read.cc
View file @
802db7a6
...
@@ -1122,7 +1122,7 @@ bool DsMrr_impl::setup_buffer_sharing(uint key_size_in_keybuf,
...
@@ -1122,7 +1122,7 @@ bool DsMrr_impl::setup_buffer_sharing(uint key_size_in_keybuf,
(
ulonglong2double
(
rowids_size
)
+
key_buff_elem_size
));
(
ulonglong2double
(
rowids_size
)
+
key_buff_elem_size
));
size_t
bytes_for_rowids
=
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
;
long
bytes_for_keys
=
(
full_buf_end
-
full_buf
)
-
bytes_for_rowids
;
...
...
sql/multi_range_read.h
View file @
802db7a6
...
@@ -346,7 +346,14 @@ private:
...
@@ -346,7 +346,14 @@ private:
/* TRUE <=> index_reader->refill_buffer() call has returned EOF */
/* TRUE <=> index_reader->refill_buffer() call has returned EOF */
bool
index_reader_exhausted
;
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
;
bool
index_reader_needs_refill
;
/* TRUE <=> need range association, buffers hold {rowid, range_id} pairs */
/* TRUE <=> need range association, buffers hold {rowid, range_id} pairs */
bool
is_mrr_assoc
;
bool
is_mrr_assoc
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment