changeset 7227:f36647d66fea default tip

It is now allowed to use MaximumStorageSize != 0 with PatientLevelEnabled = true
author Alain Mazy <am@orthanc.team>
date Fri, 27 Nov 2026 17:02:52 +0100
parents c59121419559
children
files NEWS OrthancServer/Sources/main.cpp
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Fri Nov 27 13:52:05 2026 +0100
+++ b/NEWS	Fri Nov 27 17:02:52 2026 +0100
@@ -1,6 +1,11 @@
 Pending changes in the mainline
 ===============================
 
+General
+-------
+
+* It is now allowed to use `MaximumStorageSize != 0` with `PatientLevelEnabled = true`.
+ 
 
 Version 1.13.1 (2026-11-17)
 ===========================
--- a/OrthancServer/Sources/main.cpp	Fri Nov 27 13:52:05 2026 +0100
+++ b/OrthancServer/Sources/main.cpp	Fri Nov 27 17:02:52 2026 +0100
@@ -1843,9 +1843,9 @@
       unsigned int maximumPatientCount = lock.GetConfiguration().GetMaximumPatientCount();
       unsigned int maximumStorageSize = lock.GetConfiguration().GetMaximumStorageSize();
 
-      if (!context.IsPatientLevelEnabled() && (maximumPatientCount != 0 || maximumStorageSize != 0))
+      if (!context.IsPatientLevelEnabled() && (maximumPatientCount != 0))
       {
-        LOG(ERROR) << "Can not set MaximumPatientCount or MaximumStorageSize when PatientLevelEnabled is set to false since these options require patient recycling.";
+        LOG(ERROR) << "Can not set MaximumPatientCount when PatientLevelEnabled is set to false.";
         return false;
       }