瀏覽代碼

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.
naive_version
Chris Mumford 9 年之前
父節點
當前提交
65190ac48b
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      db/version_set.cc

+ 3
- 0
db/version_set.cc 查看文件

@ -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;

Loading…
取消
儲存