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
This commit is contained in:
John Esmet 2013-04-17 00:00:59 -04:00 committed by Yoni Fogel
parent 4cea97e2b4
commit 68a73432b2

View file

@ -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.
// if we need to update the cmp descriptor, we need to make sure the lock
// 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);
}
cleanup: