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
7629f479
Commit
7629f479
authored
Jan 14, 2015
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DB-793 add debug tracing to records_in_range to help debug query plan problems
parent
ba000b3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
storage/tokudb/ha_tokudb.cc
storage/tokudb/ha_tokudb.cc
+4
-1
No files found.
storage/tokudb/ha_tokudb.cc
View file @
7629f479
...
...
@@ -7258,7 +7258,7 @@ double ha_tokudb::index_only_read_time(uint keynr, double records) {
// HA_POS_ERROR - Something is wrong with the index tree
//
ha_rows
ha_tokudb
::
records_in_range
(
uint
keynr
,
key_range
*
start_key
,
key_range
*
end_key
)
{
TOKUDB_HANDLER_DBUG_ENTER
(
"
"
);
TOKUDB_HANDLER_DBUG_ENTER
(
"
%d %p %p"
,
keynr
,
start_key
,
end_key
);
DBT
*
pleft_key
,
*
pright_key
;
DBT
left_key
,
right_key
;
ha_rows
ret_val
=
HA_TOKUDB_RANGE_COUNT
;
...
...
@@ -7314,6 +7314,9 @@ ha_rows ha_tokudb::records_in_range(uint keynr, key_range* start_key, key_range*
ret_val
=
(
ha_rows
)
(
rows
<=
1
?
1
:
rows
);
cleanup:
if
(
tokudb_debug
&
TOKUDB_DEBUG_RETURN
)
{
TOKUDB_HANDLER_TRACE
(
"%"
PRIu64
" %"
PRIu64
,
(
uint64_t
)
ret_val
,
rows
);
}
DBUG_RETURN
(
ret_val
);
}
...
...
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