Fix unit test failure in db_filename.cc

Summary:
    c_test: db/filename.cc:74: std::string leveldb::DescriptorFileName(const string&,....

Test Plan:
  this is a failure in a unit test

Differential Revision: https://reviews.facebook.net/D8667
This commit is contained in:
Dhruba Borthakur 2013-02-18 20:08:12 -08:00
parent 4564915446
commit fd367e677e
1 changed files with 2 additions and 1 deletions

View File

@ -985,7 +985,8 @@ Status VersionSet::LogAndApply(VersionEdit* edit, port::Mutex* mu,
Status s;
// No need to perform this check if a new Manifest is being created anyways.
if (last_observed_manifest_size_ > options_->max_manifest_file_size) {
if (!descriptor_log_ ||
last_observed_manifest_size_ > options_->max_manifest_file_size) {
new_descriptor_log = true;
manifest_file_number_ = NewFileNumber(); // Change manifest file no.
}