Speed up db_bench shutdown

Summary: See t6489044

Test Plan: compiles

Reviewers: MarkCallaghan

Reviewed By: MarkCallaghan

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D34977
This commit is contained in:
Igor Canadi 2015-03-13 14:45:15 -07:00
parent c1b3cde18a
commit f690712652
1 changed files with 2 additions and 0 deletions

View File

@ -1423,6 +1423,8 @@ class Benchmark {
[](ColumnFamilyHandle* cfh) { delete cfh; });
delete db_.db;
delete prefix_extractor_;
// this will leak, but we're shutting down so nobody cares
cache_->DisownData();
}
Slice AllocateKey(std::unique_ptr<const char[]>* key_guard) {