diff OrthancServer/ServerIndex.cpp @ 1218:efece308018e

report database version in /system
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 06 Nov 2014 15:58:13 +0100
parents 1169528a9a5f
children 9b4977e3c19d
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Tue Nov 04 16:09:35 2014 +0100
+++ b/OrthancServer/ServerIndex.cpp	Thu Nov 06 15:58:13 2014 +0100
@@ -346,7 +346,7 @@
     try
     {
       boost::mutex::scoped_lock lock(that->mutex_);
-      std::string sleepString = that->db_->GetGlobalProperty(GlobalProperty_FlushSleep);
+      std::string sleepString = that->db_->GetGlobalProperty(GlobalProperty_FlushSleep, "");
 
       if (Toolbox::IsInteger(sleepString))
       {
@@ -1859,4 +1859,13 @@
 
     return true;
   }
+
+
+  std::string ServerIndex::GetGlobalProperty(GlobalProperty property,
+                                             const std::string& defaultValue)
+  {
+    boost::mutex::scoped_lock lock(mutex_);
+    return db_->GetGlobalProperty(property, defaultValue);
+  }
+
 }