Mercurial > hg > orthanc-databases
diff PostgreSQL/Plugins/PostgreSQLIndex.h @ 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 | 3236894320d6 |
line wrap: on
line diff
--- a/PostgreSQL/Plugins/PostgreSQLIndex.h Fri Jan 31 17:24:29 2020 +0100 +++ b/PostgreSQL/Plugins/PostgreSQLIndex.h Mon Feb 03 22:29:51 2020 +0100 @@ -49,6 +49,12 @@ { return that_.OpenInternal(); } + + virtual void GetConnectionRetriesParameters(unsigned int& maxConnectionRetries, unsigned int& connectionRetryInterval) + { + maxConnectionRetries = that_.parameters_.GetMaxConnectionRetries(); + connectionRetryInterval = that_.parameters_.GetConnectionRetryInterval(); + } }; OrthancPluginContext* context_;