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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
4c2cef0a
Commit
4c2cef0a
authored
Jul 16, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#261 debug prelocking for index scans
parent
dd283b75
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 @
4c2cef0a
...
@@ -5628,8 +5628,8 @@ int ha_tokudb::rnd_pos(uchar * buf, uchar * pos) {
...
@@ -5628,8 +5628,8 @@ int ha_tokudb::rnd_pos(uchar * buf, uchar * pos) {
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 @@ int ha_tokudb::prelock_range( const key_range *start_key, const key_range *end_k
...
@@ -5710,7 +5710,7 @@ int ha_tokudb::prelock_range( const key_range *start_key, const key_range *end_k
// 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