From eb12b1514634ad461983e1e27e20284fdbe3f389 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Fri, 24 Mar 2017 18:08:13 -0300 Subject: [PATCH] Flush [shared-] file after write it --- src/utils/shared_files.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/shared_files.cc b/src/utils/shared_files.cc index 674a1c2e..765c859e 100644 --- a/src/utils/shared_files.cc +++ b/src/utils/shared_files.cc @@ -234,6 +234,7 @@ bool SharedFiles::write(const std::string& fileName, error->assign("failed to write: " + fileName); ret = false; } + fflush(a.second); pthread_mutex_unlock(&a.first->lock); return ret;