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
f3dcb78e
Commit
f3dcb78e
authored
Feb 24, 2015
by
Rik Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DB-817 add a txn method to get the child of the txn if any
parent
ab9d79bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
buildheader/make_tdb.cc
buildheader/make_tdb.cc
+1
-0
src/ydb_txn.cc
src/ydb_txn.cc
+5
-0
No files found.
buildheader/make_tdb.cc
View file @
f3dcb78e
...
...
@@ -586,6 +586,7 @@ static void print_db_txn_struct (void) {
"void (*set_client_id)(DB_TXN *, uint64_t client_id)"
,
"uint64_t (*get_client_id)(DB_TXN *)"
,
"bool (*is_prepared)(DB_TXN *)"
,
"DB_TXN *(*get_child)(DB_TXN *)"
,
NULL
};
sort_and_dump_fields
(
"db_txn"
,
false
,
extra
);
}
...
...
src/ydb_txn.cc
View file @
f3dcb78e
...
...
@@ -428,6 +428,10 @@ static bool toku_txn_is_prepared(DB_TXN *txn) {
return
toku_txn_get_state
(
ttxn
)
==
TOKUTXN_PREPARING
;
}
static
DB_TXN
*
toku_txn_get_child
(
DB_TXN
*
txn
)
{
return
db_txn_struct_i
(
txn
)
->
child
;
}
static
inline
void
txn_func_init
(
DB_TXN
*
txn
)
{
#define STXN(name) txn->name = locked_txn_ ## name
STXN
(
abort
);
...
...
@@ -445,6 +449,7 @@ static inline void txn_func_init(DB_TXN *txn) {
#undef SUTXN
txn
->
id64
=
toku_txn_id64
;
txn
->
is_prepared
=
toku_txn_is_prepared
;
txn
->
get_child
=
toku_txn_get_child
;
}
//
...
...
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