Commit 5857ef0c authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:3000], fix case where we are running without transactions

git-svn-id: file:///svn/toku/tokudb@24984 c7de825b-a66e-492c-adef-691d508d4ae1
parent 964383c6
......@@ -2719,7 +2719,7 @@ toku_grab_read_lock_on_directory (DB* db, DB_TXN * txn) {
//
// bad hack because some environment dictionaries do not have a dname
//
if (!dname) {
if (!dname || (db->dbenv->i->directory->i->lt == NULL)) {
return 0;
}
toku_fill_dbt(&key_in_directory, dname, strlen(dname)+1);
......
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