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
444af9c8
Commit
444af9c8
authored
Jul 18, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#261 debug prelocking for index scans
parent
e543cf16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
storage/tokudb/ha_tokudb.cc
storage/tokudb/ha_tokudb.cc
+4
-4
No files found.
storage/tokudb/ha_tokudb.cc
View file @
444af9c8
...
@@ -5628,8 +5628,8 @@ cleanup:
...
@@ -5628,8 +5628,8 @@ cleanup:
TOKUDB_HANDLER_DBUG_RETURN
(
error
);
TOKUDB_HANDLER_DBUG_RETURN
(
error
);
}
}
int
ha_tokudb
::
prelock_range
(
const
key_range
*
start_key
,
const
key_range
*
end_key
)
{
int
ha_tokudb
::
prelock_range
(
const
key_range
*
start_key
,
const
key_range
*
end_key
)
{
TOKUDB_HANDLER_DBUG_ENTER
(
"
"
);
TOKUDB_HANDLER_DBUG_ENTER
(
"
%p %p"
,
start_key
,
end_key
);
THD
*
thd
=
ha_thd
();
THD
*
thd
=
ha_thd
();
int
error
=
0
;
int
error
=
0
;
...
@@ -5710,7 +5710,7 @@ cleanup:
...
@@ -5710,7 +5710,7 @@ cleanup:
// Forward scans use read_range_first()/read_range_next().
// Forward scans use read_range_first()/read_range_next().
//
//
int
ha_tokudb
::
prepare_range_scan
(
const
key_range
*
start_key
,
const
key_range
*
end_key
)
{
int
ha_tokudb
::
prepare_range_scan
(
const
key_range
*
start_key
,
const
key_range
*
end_key
)
{
TOKUDB_HANDLER_DBUG_ENTER
(
"
"
);
TOKUDB_HANDLER_DBUG_ENTER
(
"
%p %p"
,
start_key
,
end_key
);
int
error
=
prelock_range
(
start_key
,
end_key
);
int
error
=
prelock_range
(
start_key
,
end_key
);
if
(
!
error
)
{
if
(
!
error
)
{
range_lock_grabbed
=
true
;
range_lock_grabbed
=
true
;
...
@@ -5724,7 +5724,7 @@ int ha_tokudb::read_range_first(
...
@@ -5724,7 +5724,7 @@ int ha_tokudb::read_range_first(
bool
eq_range
,
bool
eq_range
,
bool
sorted
)
bool
sorted
)
{
{
TOKUDB_HANDLER_DBUG_ENTER
(
"
"
);
TOKUDB_HANDLER_DBUG_ENTER
(
"
%p %p %u %u"
,
start_key
,
end_key
,
eq_range
,
sorted
);
int
error
=
prelock_range
(
start_key
,
end_key
);
int
error
=
prelock_range
(
start_key
,
end_key
);
if
(
error
)
{
goto
cleanup
;
}
if
(
error
)
{
goto
cleanup
;
}
range_lock_grabbed
=
true
;
range_lock_grabbed
=
true
;
...
...
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