diff OrthancServer/Sources/ServerContext.cpp @ 5785:b4e7a85cde80 find-refactoring

fix readonly init
author Alain Mazy <am@orthanc.team>
date Tue, 17 Sep 2024 11:09:06 +0200
parents 56352ae88120
children
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.cpp	Mon Sep 16 18:57:15 2024 +0200
+++ b/OrthancServer/Sources/ServerContext.cpp	Tue Sep 17 11:09:06 2024 +0200
@@ -361,8 +361,9 @@
   ServerContext::ServerContext(IDatabaseWrapper& database,
                                IStorageArea& area,
                                bool unitTesting,
-                               size_t maxCompletedJobs) :
-    index_(*this, database, (unitTesting ? 20 : 500)),
+                               size_t maxCompletedJobs,
+                               bool readOnly) :
+    index_(*this, database, (unitTesting ? 20 : 500), readOnly),
     area_(area),
     compressionEnabled_(false),
     storeMD5_(true),
@@ -388,9 +389,9 @@
     ingestTranscodingOfUncompressed_(true),
     ingestTranscodingOfCompressed_(true),
     preferredTransferSyntax_(DicomTransferSyntax_LittleEndianExplicit),
+    readOnly_(readOnly),
     deidentifyLogs_(false),
-    serverStartTimeUtc_(boost::posix_time::second_clock::universal_time()),
-    readOnly_(false)
+    serverStartTimeUtc_(boost::posix_time::second_clock::universal_time())
   {
     try
     {