changeset 5784:b0d778f1e66d find-refactoring

fix
author Alain Mazy <am@orthanc.team>
date Mon, 16 Sep 2024 18:57:15 +0200
parents 56352ae88120
children b4e7a85cde80
files NEWS OrthancServer/Sources/ServerContext.h
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Mon Sep 16 18:31:37 2024 +0200
+++ b/NEWS	Mon Sep 16 18:57:15 2024 +0200
@@ -15,7 +15,9 @@
     Rest API (TODO).
   - Introduced database optimizations "ExtendedChanges" to allow filtering of /changes.
   - Reduced the number of SQL queries when ingesting DICOM files.
-
+* Introduced a new configuration "ReadOnly" to forbid an Orthanc instance to perform 
+  any modifications in the Index DB or in the storage.
+  
 
 REST API
 --------
--- a/OrthancServer/Sources/ServerContext.h	Mon Sep 16 18:31:37 2024 +0200
+++ b/OrthancServer/Sources/ServerContext.h	Mon Sep 16 18:57:15 2024 +0200
@@ -348,7 +348,7 @@
 
     void SetReadOnly(bool readOnly)
     {
-      readOnly_ = true;
+      readOnly_ = readOnly;
     }
     
     bool IsReadOnly() const