diff PostgreSQL/Plugins/PostgreSQLIndex.h @ 431:7c1fe5d6c12c pg-transactions

PG: IncrementGlobalProperty
author Alain Mazy <am@osimis.io>
date Thu, 07 Dec 2023 12:13:43 +0100
parents 91124cc8a8c7
children 5964ce6385a5
line wrap: on
line diff
--- a/PostgreSQL/Plugins/PostgreSQLIndex.h	Thu Nov 30 14:50:09 2023 +0100
+++ b/PostgreSQL/Plugins/PostgreSQLIndex.h	Thu Dec 07 12:13:43 2023 +0100
@@ -90,5 +90,16 @@
     {
       return true;
     }
+
+    virtual bool HasAtomicIncrementGlobalProperty() ORTHANC_OVERRIDE
+    {
+      return true;
+    }
+
+    virtual int64_t IncrementGlobalProperty(DatabaseManager& manager,
+                                            const char* serverIdentifier,
+                                            int32_t property,
+                                            int64_t increment) ORTHANC_OVERRIDE;
+
   };
 }