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
c7de0452
Commit
c7de0452
authored
Jul 02, 2012
by
Yoni Fogel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refs #5149 added comments
git-svn-id:
file:///svn/toku/tokudb@45206
c7de825b-a66e-492c-adef-691d508d4ae1
parent
2cb512d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/ydb_txn.c
src/ydb_txn.c
+6
-0
No files found.
src/ydb_txn.c
View file @
c7de0452
...
...
@@ -187,6 +187,8 @@ toku_txn_xa_prepare (DB_TXN *txn, TOKU_XA_XID *xid) {
// Take the mo lock as soon as a non-readonly txn is found
bool
holds_mo_lock
=
false
;
if
(
!
toku_txn_is_read_only
(
db_txn_struct_i
(
txn
)
->
tokutxn
))
{
// A readonly transaction does no logging, and therefore does not
// need the MO lock.
toku_multi_operation_client_lock
();
holds_mo_lock
=
true
;
}
...
...
@@ -258,6 +260,8 @@ locked_txn_commit_with_progress(DB_TXN *txn, u_int32_t flags,
}
bool
holds_mo_lock
=
false
;
if
(
!
toku_txn_is_read_only
(
db_txn_struct_i
(
txn
)
->
tokutxn
))
{
// A readonly transaction does no logging, and therefore does not
// need the MO lock.
toku_multi_operation_client_lock
();
holds_mo_lock
=
true
;
}
...
...
@@ -279,6 +283,8 @@ locked_txn_abort_with_progress(DB_TXN *txn,
// But released here so we don't have to hold additional state.
bool
holds_mo_lock
=
false
;
if
(
!
toku_txn_is_read_only
(
db_txn_struct_i
(
txn
)
->
tokutxn
))
{
// A readonly transaction does no logging, and therefore does not
// need the MO lock.
toku_multi_operation_client_lock
();
holds_mo_lock
=
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