diff OrthancServer/ServerIndex.cpp @ 1751:fb569ee09a69 db-changes

LookupResource complete
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 27 Oct 2015 16:05:42 +0100
parents 55d52567bebb
children faf2ecab3472
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Tue Oct 27 12:45:50 2015 +0100
+++ b/OrthancServer/ServerIndex.cpp	Tue Oct 27 16:05:42 2015 +0100
@@ -2115,11 +2115,10 @@
   }
 
 
-  void ServerIndex::Apply(std::list<std::string>& result,
+  bool ServerIndex::Apply(std::list<std::string>& result,
                           ::Orthanc::LookupResource& lookup,
                           IStorageArea& area)
   {
-    boost::mutex::scoped_lock lock(mutex_);
-    lookup.Apply(result, db_, area);
+    return lookup.Apply(result, mutex_, db_, area);
   }
 }