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

If the txn is null, don't derefence it

git-svn-id: file:///svn/tokudb@473 c7de825b-a66e-492c-adef-691d508d4ae1
parent 6912dbdd
......@@ -287,7 +287,7 @@ struct __toku_dbc_internal {
};
int __toku_c_get (DBC *c, DBT *key, DBT *data, u_int32_t flag) {
int r = brt_cursor_get(c->i->c, key, data, flag, c->i->db, c->i->txn->i->tokutxn);
int r = brt_cursor_get(c->i->c, key, data, flag, c->i->db, c->i->txn ? c->i->txn->i->tokutxn :0);
return r;
}
......
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