Mercurial > hg > orthanc-databases
changeset 479:694d1b551cbe
ODBC MaximumConnectionRetries
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 06 Mar 2024 15:56:09 +0100 |
parents | 0064a54745e1 |
children | f2dcfa9b87f8 de34741e1d88 |
files | Odbc/NEWS Odbc/Plugins/IndexPlugin.cpp TODO |
diffstat | 3 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Odbc/NEWS Wed Mar 06 12:27:48 2024 +0100 +++ b/Odbc/NEWS Wed Mar 06 15:56:09 2024 +0100 @@ -6,6 +6,7 @@ * Compatibility with Orthanc SDK 1.12.0 (communications between the Orthanc core and the database plugin using Google Protocol Buffers) * Now detecting communication link failure with the DB and retrying to connect. +* Fixed "MaximumConnectionRetries" configuration that was not taken into account. Release 1.1 (2021-12-06)
--- a/Odbc/Plugins/IndexPlugin.cpp Wed Mar 06 12:27:48 2024 +0100 +++ b/Odbc/Plugins/IndexPlugin.cpp Wed Mar 06 15:56:09 2024 +0100 @@ -101,7 +101,7 @@ { const std::string connectionString = odbc.GetStringValue("IndexConnectionString", ""); const unsigned int countConnections = odbc.GetUnsignedIntegerValue("IndexConnectionsCount", 1); - const unsigned int maxConnectionRetries = odbc.GetUnsignedIntegerValue("MaxConnectionRetries", 10); + const unsigned int maxConnectionRetries = odbc.GetUnsignedIntegerValue("MaximumConnectionRetries", 10); const unsigned int connectionRetryInterval = odbc.GetUnsignedIntegerValue("ConnectionRetryInterval", 5); if (connectionString.empty())
--- a/TODO Wed Mar 06 12:27:48 2024 +0100 +++ b/TODO Wed Mar 06 15:56:09 2024 +0100 @@ -10,9 +10,6 @@ * Performance of joins in LookupResources: Create cached statement for LookupResources, that are grouped to search up to, say, 10 tags, instead of recompiling for each request -* Check that "MaximumConnectionRetries" is also used when trying to - reconnect at the DB when the connection is lost while running. - At least with ODBC, this is not happening. --------------------- Common - Storage area