diff OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp @ 4602:cfdd1f59ff6f db-changes

fix OrthancCDatabasePlugin.h
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 22 Mar 2021 19:25:27 +0100
parents cc64385593ef
children f75c63aa9de0
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp	Fri Mar 19 10:52:22 2021 +0100
+++ b/OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp	Mon Mar 22 19:25:27 2021 +0100
@@ -2679,8 +2679,12 @@
       }
     };
 
-    Operations operations(maximumStorageSize, maximumPatientCount);
-    Apply(operations);
+    if (maximumStorageSize != 0 ||
+        maximumPatientCount != 0)
+    {
+      Operations operations(maximumStorageSize, maximumPatientCount);
+      Apply(operations);
+    }
   }