diff OrthancServer/Sources/ServerIndex.h @ 4582:fb0379abb4a7 db-changes

assume that "GetDatabaseVersion()" can run out of a database transaction
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Mar 2021 15:25:17 +0100
parents bb3c82b8f373
children 42a846166fa3
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerIndex.h	Tue Mar 09 15:22:03 2021 +0100
+++ b/OrthancServer/Sources/ServerIndex.h	Tue Mar 09 15:25:17 2021 +0100
@@ -108,6 +108,13 @@
     // "count == 0" means no limit on the number of patients
     void SetMaximumPatientCount(unsigned int count);
 
+    // It is assumed that "GetDatabaseVersion()" can run out of a
+    // database transaction
+    unsigned int GetDatabaseVersion()
+    {
+      return db_.GetDatabaseVersion();
+    }
+
 
     
     /***
@@ -190,11 +197,6 @@
         db_.GetChildrenPublicId(target, id);
       }
 
-      unsigned int GetDatabaseVersion()
-      {
-        return db_.GetDatabaseVersion();
-      }
-
       void GetExportedResources(std::list<ExportedResource>& target /*out*/,
                                 bool& done /*out*/,
                                 int64_t since,
@@ -537,8 +539,6 @@
     bool LookupResourceType(ResourceType& type,
                             const std::string& publicId);
 
-    unsigned int GetDatabaseVersion();
-
     bool LookupParent(std::string& target,
                       const std::string& publicId,
                       ResourceType parentType);