Skip to content

Commit

Permalink
Will not reuse manifest if reuse_logs options is false.
Browse files Browse the repository at this point in the history
Prior implementation would always try to reuse the manifest, even if reuse_logs
was false (the default). This was missed because the stock
Env::NewAppendableFile implementation returns false forcing the creation of a
new log.
  • Loading branch information
cmumford committed Aug 11, 2015
1 parent ac1d69d commit 65190ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db/version_set.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,9 @@ Status VersionSet::Recover(bool *save_manifest) {

bool VersionSet::ReuseManifest(const std::string& dscname,
const std::string& dscbase) {
if (!options_->reuse_logs) {
return false;
}
FileType manifest_type;
uint64_t manifest_number;
uint64_t manifest_size;
Expand Down

0 comments on commit 65190ac

Please sign in to comment.