comparison Odbc/Plugins/IndexPlugin.cpp @ 479:694d1b551cbe

ODBC MaximumConnectionRetries
author Alain Mazy <am@osimis.io>
date Wed, 06 Mar 2024 15:56:09 +0100
parents ecd0b719cff5
children af6998ed73dd
comparison
equal deleted inserted replaced
478:0064a54745e1 479:694d1b551cbe
99 99
100 try 100 try
101 { 101 {
102 const std::string connectionString = odbc.GetStringValue("IndexConnectionString", ""); 102 const std::string connectionString = odbc.GetStringValue("IndexConnectionString", "");
103 const unsigned int countConnections = odbc.GetUnsignedIntegerValue("IndexConnectionsCount", 1); 103 const unsigned int countConnections = odbc.GetUnsignedIntegerValue("IndexConnectionsCount", 1);
104 const unsigned int maxConnectionRetries = odbc.GetUnsignedIntegerValue("MaxConnectionRetries", 10); 104 const unsigned int maxConnectionRetries = odbc.GetUnsignedIntegerValue("MaximumConnectionRetries", 10);
105 const unsigned int connectionRetryInterval = odbc.GetUnsignedIntegerValue("ConnectionRetryInterval", 5); 105 const unsigned int connectionRetryInterval = odbc.GetUnsignedIntegerValue("ConnectionRetryInterval", 5);
106 106
107 if (connectionString.empty()) 107 if (connectionString.empty())
108 { 108 {
109 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange, 109 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange,