changeset 5786:09e337d45d22 find-refactoring

fix readonly
author Alain Mazy <am@orthanc.team>
date Tue, 17 Sep 2024 12:47:42 +0200
parents b4e7a85cde80
children 42ef98bb3c13
files OrthancServer/Sources/ServerIndex.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerIndex.cpp	Tue Sep 17 11:09:06 2024 +0200
+++ b/OrthancServer/Sources/ServerIndex.cpp	Tue Sep 17 12:47:42 2024 +0200
@@ -366,7 +366,7 @@
     // For some DB engines (like SQLite), make sure we flush the DB to disk at regular interval
     if (GetDatabaseCapabilities().HasFlushToDisk())
     {
-      if (!readOnly)
+      if (readOnly)
       {
         LOG(WARNING) << "READ-ONLY SYSTEM: not starting the flush disk thread";
       }
@@ -381,7 +381,7 @@
     // -> make sure they are updated at regular interval
     if (GetDatabaseCapabilities().HasUpdateAndGetStatistics())
     {
-      if (!readOnly)
+      if (readOnly)
       {
         LOG(WARNING) << "READ-ONLY SYSTEM: not starting the UpdateStatisticsThread";
       }
@@ -391,7 +391,7 @@
       }
     }
 
-    if (!readOnly)
+    if (readOnly)
     {
       LOG(WARNING) << "READ-ONLY SYSTEM: not starting the unstable resources monitor thread";
     }