diff --git a/HISTORY.md b/HISTORY.md index 8e8c0eec2..f6fa9a005 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,4 +1,8 @@ # Rocksdb Change Log +## 5.4.7 (06/28/2017) +### Bug Fixes +* Shouldn't ignore return value of fsync() in flush. + ## 5.4.6 (05/30/2017) ### Bug Fixes * Fix db_bench with lite build. diff --git a/db/builder.cc b/db/builder.cc index 65ffd449a..83d788cf6 100644 --- a/db/builder.cc +++ b/db/builder.cc @@ -177,7 +177,7 @@ Status BuildTable( // Finish and check for file errors if (s.ok() && !empty) { StopWatch sw(env, ioptions.statistics, TABLE_SYNC_MICROS); - file_writer->Sync(ioptions.use_fsync); + s = file_writer->Sync(ioptions.use_fsync); } if (s.ok() && !empty) { s = file_writer->Close();