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
This commit is contained in:
heyongqiang 2012-08-15 16:38:08 -07:00
parent fe6119bd3a
commit fcb2ea4715

View File

@ -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()) {