mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
closes #5005, add a comment
git-svn-id: file:///svn/toku/tokudb@45213 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
f1cadec681
commit
f6f073706b
1 changed files with 6 additions and 0 deletions
|
@ -690,6 +690,12 @@ locked_db_open(DB *db, DB_TXN *txn, const char *fname, const char *dbname, DBTYP
|
||||||
int ret, r;
|
int ret, r;
|
||||||
HANDLE_DB_ILLEGAL_WORKING_PARENT_TXN(db, txn);
|
HANDLE_DB_ILLEGAL_WORKING_PARENT_TXN(db, txn);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Note that this function opens a db with a transaction. Should
|
||||||
|
// the transaction abort, the user is responsible for closing the DB
|
||||||
|
// before aborting the transaction. Not doing so results in undefined
|
||||||
|
// behavior.
|
||||||
|
//
|
||||||
DB_ENV *env = db->dbenv;
|
DB_ENV *env = db->dbenv;
|
||||||
DB_TXN *child_txn = NULL;
|
DB_TXN *child_txn = NULL;
|
||||||
int using_txns = env->i->open_flags & DB_INIT_TXN;
|
int using_txns = env->i->open_flags & DB_INIT_TXN;
|
||||||
|
|
Loading…
Add table
Reference in a new issue