add:compact_pointers_ should be clear when Clear() called

This commit is contained in:
caodhuan 2019-01-22 10:10:40 +08:00
parent 6fa4566670
commit 77e9dfad9f

View File

@ -34,6 +34,7 @@ void VersionEdit::Clear() {
has_prev_log_number_ = false; has_prev_log_number_ = false;
has_next_file_number_ = false; has_next_file_number_ = false;
has_last_sequence_ = false; has_last_sequence_ = false;
compact_pointers_.clear();
deleted_files_.clear(); deleted_files_.clear();
new_files_.clear(); new_files_.clear();
} }