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
a6d47ab1
Commit
a6d47ab1
authored
Nov 28, 2010
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix buildbot failure: keep rowid_buf_elem_size to its original value, otherwise
subsequent asserts have the wrong meaning.
parent
8604dc78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
sql/multi_range_read.cc
sql/multi_range_read.cc
+4
-3
No files found.
sql/multi_range_read.cc
View file @
a6d47ab1
...
@@ -1054,14 +1054,15 @@ void DsMrr_impl::setup_buffer_sizes(uint key_size_in_keybuf,
...
@@ -1054,14 +1054,15 @@ void DsMrr_impl::setup_buffer_sizes(uint key_size_in_keybuf,
*/
*/
uint
parts
=
my_count_bits
(
key_tuple_map
);
uint
parts
=
my_count_bits
(
key_tuple_map
);
ulong
rpc
;
ulong
rpc
;
ulonglong
rowids_size
;
if
((
rpc
=
key_info
->
rec_per_key
[
parts
-
1
]))
if
((
rpc
=
key_info
->
rec_per_key
[
parts
-
1
]))
{
{
rowid
_buf_elem_size
*=
rpc
;
rowid
s_size
=
rowid_buf_elem_size
*
rpc
;
}
}
double
fraction_for_rowids
=
double
fraction_for_rowids
=
(
ulonglong2double
(
rowid
_buf_elem
_size
)
/
(
ulonglong2double
(
rowid
s
_size
)
/
(
ulonglong2double
(
rowid
_buf_elem
_size
)
+
key_buff_elem_size
));
(
ulonglong2double
(
rowid
s
_size
)
+
key_buff_elem_size
));
size_t
bytes_for_rowids
=
size_t
bytes_for_rowids
=
round
(
fraction_for_rowids
*
(
full_buf_end
-
full_buf
));
round
(
fraction_for_rowids
*
(
full_buf_end
-
full_buf
));
...
...
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