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
main
Dhruba Borthakur 12 years ago
parent 4564915446
commit fd367e677e
  1. 3
      db/version_set.cc

@ -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.
}

Loading…
Cancel
Save