From fcb2ea47155e3e1326e40f53e188c0b6f1734f4a Mon Sep 17 00:00:00 2001 From: heyongqiang Date: Wed, 15 Aug 2012 16:38:08 -0700 Subject: [PATCH] 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 --- db/builder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {