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
83b52d49
Commit
83b52d49
authored
Apr 17, 2013
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
216aec3f
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 @
83b52d49
...
...
@@ -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