提交 318a4919 编写于 作者: D Dhruba Borthakur

Fix valgrind check by initialising DeletionState.

Summary:
The valgrind error was introduced by commit
1510339e. Initialize DeletionState
in constructor.

Test Plan: valgrind --leak-check=yes ./deletefile_test

Reviewers: igor, kailiu

Reviewed By: kailiu

CC: leveldb

Differential Revision: https://reviews.facebook.net/D13983
上级 e7c4d823
......@@ -179,6 +179,12 @@ class DBImpl : public DB {
// the current manifest_file_number, log_number and prev_log_number
// that corresponds to the set of files in 'live'.
uint64_t manifest_file_number, log_number, prev_log_number;
DeletionState() {
manifest_file_number = 0;
log_number = 0;
prev_log_number = 0;
}
};
// Delete any unneeded files and stale in-memory entries.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册