changeset 724:c76a214a3954 sql-opti

rename
author Alain Mazy <am@orthanc.team>
date Mon, 11 Aug 2025 18:26:08 +0200
parents 94e3a3eac0f5
children b086e69efb8c
files Framework/Plugins/DynamicIndexConnectionsPool.cpp Framework/Plugins/IndexConnectionsPool.cpp PostgreSQL/NEWS
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Plugins/DynamicIndexConnectionsPool.cpp	Mon Aug 11 18:21:42 2025 +0200
+++ b/Framework/Plugins/DynamicIndexConnectionsPool.cpp	Mon Aug 11 18:26:08 2025 +0200
@@ -32,7 +32,7 @@
   {
     CleanupOldConnections();
 
-    OrthancPluginSetMetricsValue(OrthancPlugins::GetGlobalContext(), "orthanc_index_active_connections_count", maxConnectionsCount_ - connectionsSemaphore_.GetAvailableResourcesCount(), OrthancPluginMetricsType_Default);
+    OrthancPluginSetMetricsValue(OrthancPlugins::GetGlobalContext(), "orthanc_index_active_connections", maxConnectionsCount_ - connectionsSemaphore_.GetAvailableResourcesCount(), OrthancPluginMetricsType_Default);
   }
 
 
--- a/Framework/Plugins/IndexConnectionsPool.cpp	Mon Aug 11 18:21:42 2025 +0200
+++ b/Framework/Plugins/IndexConnectionsPool.cpp	Mon Aug 11 18:26:08 2025 +0200
@@ -78,8 +78,8 @@
 
   void IndexConnectionsPool::PerformPoolHousekeeping()
   {
-    // this is actually a fixed value !
-    OrthancPluginSetMetricsValue(OrthancPlugins::GetGlobalContext(), "orthanc_index_active_connections_count", countConnections_, OrthancPluginMetricsType_Default);
+    // this is actually a fixed value with this pool !
+    OrthancPluginSetMetricsValue(OrthancPlugins::GetGlobalContext(), "orthanc_index_active_connections", countConnections_, OrthancPluginMetricsType_Default);
   }
 
 
--- a/PostgreSQL/NEWS	Mon Aug 11 18:21:42 2025 +0200
+++ b/PostgreSQL/NEWS	Mon Aug 11 18:26:08 2025 +0200
@@ -18,7 +18,7 @@
   could otherwise accumulate dead rows.
   When using a dynamic pool, connections are released either after 60 seconds
   of being idle or one hour after their creation.
-* New metrics "orthanc_index_active_connections_count" showing the current number
+* New metrics "orthanc_index_active_connections" showing the current number
   of active connections.
 * Added support for AuditLogs.  The PostgreSQL plugin is listening to audit logs
   and is storing them in the SQL Database.