disable data sync options needs to be checked when doing level-0 dump Summary:

Summary: as subject

Test Plan: use db_bench

Reviewers: dhruba

Differential Revision: https://reviews.facebook.net/D4671
main
heyongqiang 13 years ago
parent fe6119bd3a
commit fcb2ea4715
  1. 2
      db/builder.cc

@ -53,7 +53,7 @@ Status BuildTable(const std::string& dbname,
delete builder;
// Finish and check for file errors
if (s.ok()) {
if (s.ok() && !options.disableDataSync) {
s = file->Sync();
}
if (s.ok()) {

Loading…
Cancel
Save