Mercurial > hg > orthanc-databases
comparison 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 |
comparison
equal
deleted
inserted
replaced
252:33fa478c119a | 253:3bc442765b88 |
---|---|
2457 | 2457 |
2458 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in Orthanc 1.3.1 | 2458 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in Orthanc 1.3.1 |
2459 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 9, 2) | 2459 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 9, 2) |
2460 if (OrthancPluginCheckVersionAdvanced(backend->GetContext(), 1, 9, 2) == 1) | 2460 if (OrthancPluginCheckVersionAdvanced(backend->GetContext(), 1, 9, 2) == 1) |
2461 { | 2461 { |
2462 LOG(WARNING) << "The index plugin will use " << countConnections << " connection(s) to the database, " | |
2463 << "and will retry up to " << maxDatabaseRetries << " time(s) in the case of a collision"; | |
2464 | |
2462 OrthancDatabases::DatabaseBackendAdapterV3::Register(backend, countConnections, maxDatabaseRetries); | 2465 OrthancDatabases::DatabaseBackendAdapterV3::Register(backend, countConnections, maxDatabaseRetries); |
2463 hasLoadedV3 = true; | 2466 hasLoadedV3 = true; |
2464 } | 2467 } |
2465 # endif | 2468 # endif |
2466 #endif | 2469 #endif |