Mercurial > hg > orthanc-databases
diff Framework/Plugins/IndexBackend.h @ 234:d1b124d116c1
PostgreSQL index plugin handles retries for collisions between multiple writers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 08 Apr 2021 10:50:01 +0200 |
parents | 4e15eace9b90 |
children | 35598014f140 |
line wrap: on
line diff
--- a/Framework/Plugins/IndexBackend.h Tue Apr 06 15:07:27 2021 +0200 +++ b/Framework/Plugins/IndexBackend.h Thu Apr 08 10:50:01 2021 +0200 @@ -381,7 +381,15 @@ const char* hashSeries, const char* hashInstance); - static void Register(IndexBackend* backend); + /** + * "maxDatabaseRetries" is to handle + * "OrthancPluginErrorCode_DatabaseCannotSerialize" if there is a + * collision multiple writers. "countConnections" and + * "maxDatabaseRetries" are only used if Orthanc >= 1.9.2. + **/ + static void Register(IndexBackend* backend, + size_t countConnections, + unsigned int maxDatabaseRetries); static void Finalize();