fix complie error

Summary:

as subject

Test Plan:n/a
main
heyongqiang 12 years ago
parent d55c2ba305
commit f1a7c735b5
  1. 2
      db/version_set.cc

@ -796,7 +796,7 @@ Status VersionSet::LogAndApply(VersionEdit* edit, port::Mutex* mu,
if (descriptor_log_ == NULL || new_descriptor_log) { if (descriptor_log_ == NULL || new_descriptor_log) {
// No reason to unlock *mu here since we only hit this path in the // No reason to unlock *mu here since we only hit this path in the
// first call to LogAndApply (when opening the database). // first call to LogAndApply (when opening the database).
assert(descriptor_file_ == NULL || new_descriptor_log) assert(descriptor_file_ == NULL || new_descriptor_log);
new_manifest_file = DescriptorFileName(dbname_, manifest_file_number_); new_manifest_file = DescriptorFileName(dbname_, manifest_file_number_);
edit->SetNextFile(next_file_number_); edit->SetNextFile(next_file_number_);
s = env_->NewWritableFile(new_manifest_file, &descriptor_file_); s = env_->NewWritableFile(new_manifest_file, &descriptor_file_);

Loading…
Cancel
Save