Merge pull request #16553 from wumingqiao/wip-leveldb-store-crash

kv: resolve a crash issue in ~LevelDBStore()

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2017-07-27 00:54:21 +08:00 committed by GitHub
commit a5300a38a8

View File

@ -150,10 +150,10 @@ LevelDBStore::~LevelDBStore()
{
close();
delete logger;
delete ceph_logger;
// Ensure db is destroyed before dependent db_cache and filterpolicy
db.reset();
delete ceph_logger;
}
void LevelDBStore::close()