changeset 2217:4f39ab2cb453

flush
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 12 Dec 2016 11:56:26 +0100
parents 9a8fab016145
children 3eefb84ac0bd
files OrthancServer/OrthancInitialization.cpp OrthancServer/ServerIndex.cpp
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/OrthancInitialization.cpp	Mon Dec 12 11:01:09 2016 +0100
+++ b/OrthancServer/OrthancInitialization.cpp	Mon Dec 12 11:56:26 2016 +0100
@@ -47,7 +47,7 @@
 #include <boost/lexical_cast.hpp>
 #include <boost/filesystem.hpp>
 #include <curl/curl.h>
-#include <boost/thread.hpp>
+#include <boost/thread/recursive_mutex.hpp>
 
 
 #if ORTHANC_ENABLE_JPEG == 1
--- a/OrthancServer/ServerIndex.cpp	Mon Dec 12 11:01:09 2016 +0100
+++ b/OrthancServer/ServerIndex.cpp	Mon Dec 12 11:56:26 2016 +0100
@@ -374,6 +374,8 @@
         continue;
       }
 
+      Logging::Flush();
+
       boost::mutex::scoped_lock lock(that->mutex_);
       that->db_.FlushToDisk();
       count = 0;