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
c2581575
Commit
c2581575
authored
10 years ago
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#166 pretty print external lock type
parent
c7836bb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
storage/tokudb/ha_tokudb.cc
storage/tokudb/ha_tokudb.cc
+8
-2
No files found.
storage/tokudb/ha_tokudb.cc
View file @
c2581575
...
...
@@ -6112,6 +6112,12 @@ cleanup:
return
error
;
}
static
const
char
*
lock_type_str
(
int
lock_type
)
{
if
(
lock_type
==
F_RDLCK
)
return
"F_RDLCK"
;
if
(
lock_type
==
F_WRLCK
)
return
"F_WRLCK"
;
if
(
lock_type
==
F_UNLCK
)
return
"F_UNLCK"
;
return
"?"
;
}
/*
As MySQL will execute an external lock for every new table it uses
...
...
@@ -6130,9 +6136,9 @@ cleanup:
// error otherwise
//
int
ha_tokudb
::
external_lock
(
THD
*
thd
,
int
lock_type
)
{
TOKUDB_HANDLER_DBUG_ENTER
(
"cmd=%d %d
"
,
thd_sql_command
(
thd
),
lock_type
);
TOKUDB_HANDLER_DBUG_ENTER
(
"cmd=%d %d
%s"
,
thd_sql_command
(
thd
),
lock_type
,
lock_type_str
(
lock_type
)
);
if
(
tokudb_debug
&
TOKUDB_DEBUG_LOCK
)
TOKUDB_TRACE
(
"%s cmd=%d %d
"
,
__FUNCTION__
,
thd_sql_command
(
thd
),
lock_type
);
TOKUDB_TRACE
(
"%s cmd=%d %d
%s"
,
__FUNCTION__
,
thd_sql_command
(
thd
),
lock_type
,
lock_type_str
(
lock_type
)
);
int
error
=
0
;
tokudb_trx_data
*
trx
=
NULL
;
...
...
This diff is collapsed.
Click to expand it.
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