changeset 5518:bbe45a71f5cd pg-transactions

reorganization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Jan 2024 09:16:47 +0100
parents 0d433132b249
children 2c5eb1ef26a0
files OrthancServer/Plugins/Engine/OrthancPluginDatabase.h OrthancServer/Plugins/Engine/OrthancPluginDatabaseV3.h OrthancServer/Sources/Database/BaseDatabaseWrapper.cpp OrthancServer/Sources/Database/BaseDatabaseWrapper.h
diffstat 4 files changed, 8 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Plugins/Engine/OrthancPluginDatabase.h	Mon Jan 29 19:19:52 2024 +0100
+++ b/OrthancServer/Plugins/Engine/OrthancPluginDatabase.h	Tue Jan 30 09:16:47 2024 +0100
@@ -109,11 +109,6 @@
       return dbCapabilities_;
     }
 
-    virtual uint64_t MeasureLatency() ORTHANC_OVERRIDE
-    {
-      throw OrthancException(ErrorCode_NotImplemented);  // only implemented in V4
-    }
-
     void AnswerReceived(const _OrthancPluginDatabaseAnswer& answer);
   };
 }
--- a/OrthancServer/Plugins/Engine/OrthancPluginDatabaseV3.h	Mon Jan 29 19:19:52 2024 +0100
+++ b/OrthancServer/Plugins/Engine/OrthancPluginDatabaseV3.h	Tue Jan 30 09:16:47 2024 +0100
@@ -77,11 +77,6 @@
     virtual void Upgrade(unsigned int targetVersion,
                          IStorageArea& storageArea) ORTHANC_OVERRIDE;    
 
-    virtual uint64_t MeasureLatency() ORTHANC_OVERRIDE
-    {
-      throw OrthancException(ErrorCode_NotImplemented);  // only implemented in V4
-    }
-
     virtual const Capabilities GetDatabaseCapabilities() const ORTHANC_OVERRIDE
     {
       return dbCapabilities_;
--- a/OrthancServer/Sources/Database/BaseDatabaseWrapper.cpp	Mon Jan 29 19:19:52 2024 +0100
+++ b/OrthancServer/Sources/Database/BaseDatabaseWrapper.cpp	Tue Jan 30 09:16:47 2024 +0100
@@ -43,4 +43,10 @@
   {
     throw OrthancException(ErrorCode_NotImplemented);  // Not supported
   }
+
+
+  uint64_t BaseDatabaseWrapper::MeasureLatency()
+  {
+    throw OrthancException(ErrorCode_NotImplemented);  // only implemented in V4
+  }
 }
--- a/OrthancServer/Sources/Database/BaseDatabaseWrapper.h	Mon Jan 29 19:19:52 2024 +0100
+++ b/OrthancServer/Sources/Database/BaseDatabaseWrapper.h	Tue Jan 30 09:16:47 2024 +0100
@@ -47,5 +47,7 @@
                                           int64_t& compressedSize,
                                           int64_t& uncompressedSize) ORTHANC_OVERRIDE;
     };
+
+    virtual uint64_t MeasureLatency() ORTHANC_OVERRIDE;
   };
 }