Merge pull request #960 from ericuni:dedup
PiperOrigin-RevId: 420534594
This commit is contained in:
commit
4db0eaccf1
@ -806,7 +806,6 @@ Status VersionSet::LogAndApply(VersionEdit* edit, port::Mutex* mu) {
|
|||||||
// first call to LogAndApply (when opening the database).
|
// first call to LogAndApply (when opening the database).
|
||||||
assert(descriptor_file_ == nullptr);
|
assert(descriptor_file_ == nullptr);
|
||||||
new_manifest_file = DescriptorFileName(dbname_, manifest_file_number_);
|
new_manifest_file = DescriptorFileName(dbname_, manifest_file_number_);
|
||||||
edit->SetNextFile(next_file_number_);
|
|
||||||
s = env_->NewWritableFile(new_manifest_file, &descriptor_file_);
|
s = env_->NewWritableFile(new_manifest_file, &descriptor_file_);
|
||||||
if (s.ok()) {
|
if (s.ok()) {
|
||||||
descriptor_log_ = new log::Writer(descriptor_file_);
|
descriptor_log_ = new log::Writer(descriptor_file_);
|
||||||
|
Loading…
Reference in New Issue
Block a user