diff Framework/Plugins/IndexBackend.cpp @ 253:3bc442765b88

new configuration option: "IndexConnectionsCount"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Apr 2021 15:08:51 +0200
parents 7f5ee2b42a86
children d663d9e44f8d
line wrap: on
line diff
--- a/Framework/Plugins/IndexBackend.cpp	Wed Apr 14 13:33:48 2021 +0200
+++ b/Framework/Plugins/IndexBackend.cpp	Wed Apr 14 15:08:51 2021 +0200
@@ -2459,6 +2459,9 @@
 #  if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 9, 2)
     if (OrthancPluginCheckVersionAdvanced(backend->GetContext(), 1, 9, 2) == 1)
     {
+      LOG(WARNING) << "The index plugin will use " << countConnections << " connection(s) to the database, "
+                   << "and will retry up to " << maxDatabaseRetries << " time(s) in the case of a collision";
+      
       OrthancDatabases::DatabaseBackendAdapterV3::Register(backend, countConnections, maxDatabaseRetries);
       hasLoadedV3 = true;
     }