Commit b6b4e493 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Handle NULL TXN

git-svn-id: file:///svn/tokudb@638 c7de825b-a66e-492c-adef-691d508d4ae1
parent 0f9cbcd0
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment