Mercurial > hg > orthanc-databases
changeset 627:78ed0f5389cc
Disable DB Housekeeping thread on ReadOnly systems
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Fri, 03 Jan 2025 10:46:22 +0100 |
parents | 813f3633bea1 |
children | a9316631f2da |
files | PostgreSQL/NEWS PostgreSQL/Plugins/PostgreSQLIndex.cpp |
diffstat | 2 files changed, 17 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/PostgreSQL/NEWS Thu Dec 19 11:59:35 2024 +0100 +++ b/PostgreSQL/NEWS Fri Jan 03 10:46:22 2025 +0100 @@ -1,3 +1,19 @@ +Pending changes in the mainline +=============================== + +DB schema revision: 3 +Minimum plugin SDK (for build): 1.12.5+ +Optimal plugin SDK (for build): 1.12.5+ +Minimum Orthanc runtime: 1.12.5+ +Optimal Orthanc runtime: 1.12.5+ + +Minimal Postgresql Server version: 9 +Optimal Postgresql Server version: 11+ + + +* Disable DB Housekeeping thread on ReadOnly systems. + + Release 7.0 (2024-12-18) ========================
--- a/PostgreSQL/Plugins/PostgreSQLIndex.cpp Thu Dec 19 11:59:35 2024 +0100 +++ b/PostgreSQL/Plugins/PostgreSQLIndex.cpp Fri Jan 03 10:46:22 2025 +0100 @@ -737,7 +737,7 @@ bool PostgreSQLIndex::HasPerformDbHousekeeping() { - return true; + return !IsReadOnly(); // Don't start HK on ReadOnly databases ! } void PostgreSQLIndex::PerformDbHousekeeping(DatabaseManager& manager)