mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
Handle NULL TXN
git-svn-id: file:///svn/tokudb@638 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
f62fe5cc5b
commit
f0e169ab6e
1 changed files with 2 additions and 1 deletions
|
@ -486,7 +486,8 @@ int __toku_db_open(DB * db, DB_TXN * txn, const char *fname, const char *dbname,
|
|||
db->i->open_mode = mode;
|
||||
|
||||
r = brt_open(db->i->brt, db->i->full_fname, dbname, flags & DB_CREATE,
|
||||
db->dbenv->i->cachetable, txn->i->tokutxn);
|
||||
db->dbenv->i->cachetable,
|
||||
txn ? txn->i->tokutxn : NULL_TXN);
|
||||
if (r != 0)
|
||||
goto error_cleanup;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue