Mercurial > hg > orthanc-databases
diff Framework/Plugins/IndexBackend.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/Framework/Plugins/IndexBackend.h Thu Nov 30 14:50:09 2023 +0100 +++ b/Framework/Plugins/IndexBackend.h Thu Dec 07 12:13:43 2023 +0100 @@ -396,6 +396,14 @@ virtual void ListAllLabels(std::list<std::string>& target, DatabaseManager& manager) ORTHANC_OVERRIDE; + virtual bool HasAtomicIncrementGlobalProperty() ORTHANC_OVERRIDE; + + virtual int64_t IncrementGlobalProperty(DatabaseManager& manager, + const char* serverIdentifier, + int32_t property, + int64_t increment) ORTHANC_OVERRIDE; + + /** * "maxDatabaseRetries" is to handle * "OrthancPluginErrorCode_DatabaseCannotSerialize" if there is a