Pārlūkot izejas kodu

rm redundant code: SetNextFile has already been called before in this function

main
Eric Wang pirms 3 gadiem
vecāks
revīzija
42d00a80cc
1 mainītis faili ar 0 papildinājumiem un 1 dzēšanām
  1. +0
    -1
      db/version_set.cc

+ 0
- 1
db/version_set.cc Parādīt failu

@ -806,7 +806,6 @@ Status VersionSet::LogAndApply(VersionEdit* edit, port::Mutex* mu) {
// first call to LogAndApply (when opening the database).
assert(descriptor_file_ == nullptr);
new_manifest_file = DescriptorFileName(dbname_, manifest_file_number_);
edit->SetNextFile(next_file_number_);
s = env_->NewWritableFile(new_manifest_file, &descriptor_file_);
if (s.ok()) {
descriptor_log_ = new log::Writer(descriptor_file_);

Notiek ielāde…
Atcelt
Saglabāt