diff --git a/db/builder.cc b/db/builder.cc index f41988219..7b03d3c14 100644 --- a/db/builder.cc +++ b/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()) {