Commit 0e3fbcab authored by John Esmet's avatar John Esmet Committed by Yoni Fogel

fixes #5276 check for a locktree before trying to update its descriptor


git-svn-id: file:///svn/toku/tokudb@45908 c7de825b-a66e-492c-adef-691d508d4ae1
parent 69045892
...@@ -514,7 +514,7 @@ toku_db_change_descriptor(DB *db, DB_TXN* txn, const DBT* descriptor, u_int32_t ...@@ -514,7 +514,7 @@ toku_db_change_descriptor(DB *db, DB_TXN* txn, const DBT* descriptor, u_int32_t
// the lock tree uses a copy of the header's descriptor for comparisons. // the lock tree uses a copy of the header's descriptor for comparisons.
// if we need to update the cmp descriptor, we need to make sure the lock // if we need to update the cmp descriptor, we need to make sure the lock
// tree can get a copy of the new descriptor. // tree can get a copy of the new descriptor.
if (update_cmp_descriptor) { if (db->i->lt && update_cmp_descriptor) {
toku_lt_update_descriptor(db->i->lt, db->cmp_descriptor); toku_lt_update_descriptor(db->i->lt, db->cmp_descriptor);
} }
cleanup: 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