diff --git a/HISTORY.md b/HISTORY.md index cabf93b73..90bee1e14 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -21,6 +21,9 @@ * Introduce WriteOptions.low_pri. If it is true, low priority writes will be throttled if the compaction is behind. * `DB::IngestExternalFile()` now supports ingesting files into a database containing range deletions. +### Bu Fixes +* Shouldn't ignore return value of fsync() in flush. + ## 5.5.0 (05/17/2017) ### New Features * FIFO compaction to support Intra L0 compaction too with CompactionOptionsFIFO.allow_compaction=true. diff --git a/db/builder.cc b/db/builder.cc index 0c0bbb236..ec7703619 100644 --- a/db/builder.cc +++ b/db/builder.cc @@ -179,7 +179,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();