Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1217:92ba9c7b431f | 1218:efece308018e |
---|---|
344 unsigned int sleep = 10; | 344 unsigned int sleep = 10; |
345 | 345 |
346 try | 346 try |
347 { | 347 { |
348 boost::mutex::scoped_lock lock(that->mutex_); | 348 boost::mutex::scoped_lock lock(that->mutex_); |
349 std::string sleepString = that->db_->GetGlobalProperty(GlobalProperty_FlushSleep); | 349 std::string sleepString = that->db_->GetGlobalProperty(GlobalProperty_FlushSleep, ""); |
350 | 350 |
351 if (Toolbox::IsInteger(sleepString)) | 351 if (Toolbox::IsInteger(sleepString)) |
352 { | 352 { |
353 sleep = boost::lexical_cast<unsigned int>(sleepString); | 353 sleep = boost::lexical_cast<unsigned int>(sleepString); |
354 } | 354 } |
1857 target[key] = value; | 1857 target[key] = value; |
1858 } | 1858 } |
1859 | 1859 |
1860 return true; | 1860 return true; |
1861 } | 1861 } |
1862 | |
1863 | |
1864 std::string ServerIndex::GetGlobalProperty(GlobalProperty property, | |
1865 const std::string& defaultValue) | |
1866 { | |
1867 boost::mutex::scoped_lock lock(mutex_); | |
1868 return db_->GetGlobalProperty(property, defaultValue); | |
1869 } | |
1870 | |
1862 } | 1871 } |