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
d70251e9
Commit
d70251e9
authored
Jul 02, 2012
by
Zardosht Kasheff
Committed by
Yoni Fogel
Apr 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
closes #5055, add comment
git-svn-id:
file:///svn/toku/tokudb@45215
c7de825b-a66e-492c-adef-691d508d4ae1
parent
8f9e8bfd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
src/ydb_txn.c
src/ydb_txn.c
+13
-0
No files found.
src/ydb_txn.c
View file @
d70251e9
...
...
@@ -324,6 +324,19 @@ txn_func_init(DB_TXN *txn) {
txn
->
id64
=
toku_txn_id64
;
}
//
// Creates a transaction for the user
// In our system, as far as the user is concerned, the rules are as follows:
// - one cannot operate on a transaction if a child exists, with the exception of commit/abort
// - one cannot operate on a transaction simultaneously in two separate threads
// (the reason for this is that some operations may create a child transaction
// as part of the function, such as env->dbremove and env->dbrename, and if
// transactions could be operated on simulatenously in different threads, the first
// rule above is violated)
// - if a parent transaction is committed/aborted, the child transactions are recursively
// committed
//
int
toku_txn_begin
(
DB_ENV
*
env
,
DB_TXN
*
stxn
,
DB_TXN
**
txn
,
u_int32_t
flags
)
{
HANDLE_PANICKED_ENV
(
env
);
...
...
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