Skip to content

Commit 65190ac

Browse files
committed
Will not reuse manifest if reuse_logs options is false.
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.
1 parent ac1d69d commit 65190ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

db/version_set.cc

+3
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,9 @@ Status VersionSet::Recover(bool *save_manifest) {
10171017

10181018
bool VersionSet::ReuseManifest(const std::string& dscname,
10191019
const std::string& dscbase) {
1020+
if (!options_->reuse_logs) {
1021+
return false;
1022+
}
10201023
FileType manifest_type;
10211024
uint64_t manifest_number;
10221025
uint64_t manifest_size;

0 commit comments

Comments
 (0)