提交 d8371ef1 编写于 作者: K Kosie van der Merwe

Fixing some issues Valgrind found

Summary: Found some issues running Valgrind on `db_test` (there are still some outstanding ones) and fixed them.

Test Plan:
make check

ran `valgrind ./db_test` and saw that errors no longer occur

Reviewers: dhruba, vamsi, emayanke, sheki

Reviewed By: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D7803
上级 4d339d74
......@@ -262,7 +262,7 @@ DBImpl::~DBImpl() {
delete options_.block_cache;
}
if (options_.compression_per_level != NULL) {
delete options_.compression_per_level;
delete[] options_.compression_per_level;
}
delete logger_;
......@@ -1183,7 +1183,7 @@ void DBImpl::BGWork(void* db) {
}
void DBImpl::BackgroundCall() {
bool madeProgress;
bool madeProgress = false;
DeletionState deletion_state;
MutexLock l(&mutex_);
// Log(options_.info_log, "XXX BG Thread %llx process new work item", pthread_self());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册