comparison Framework/MySQL/MySQLParameters.cpp @ 141:0b3e9ee53c46

Added 'MaximumConnectionRetries' & 'ConnectionRetryInterval' to configure the retries when connecting to the DB at startup
author Alain Mazy <alain@mazy.be>
date Mon, 03 Feb 2020 22:29:51 +0100
parents 4cd7e45b671e
children 063aa53b5917
comparison
equal deleted inserted replaced
140:4cd7e45b671e 141:0b3e9ee53c46
87 { 87 {
88 SetUnixSocket(s); 88 SetUnixSocket(s);
89 } 89 }
90 90
91 lock_ = configuration.GetBooleanValue("Lock", true); // Use locking by default 91 lock_ = configuration.GetBooleanValue("Lock", true); // Use locking by default
92
93 maxConnectionRetries_ = configuration.GetUnsignedIntegerValue("MaximumConnectionRetries", 10);
94 connectionRetryInterval_ = configuration.GetUnsignedIntegerValue("ConnectionRetryInterval", 5);
92 } 95 }
93 96
94 97
95 void MySQLParameters::SetHost(const std::string& host) 98 void MySQLParameters::SetHost(const std::string& host)
96 { 99 {