diff OrthancServer/ServerContext.cpp @ 2965:9c0b0a6d8b54

MediaArchiveSize configuration option
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Dec 2018 14:33:47 +0100
parents bfee0b9f3209
children 7695a9c81099
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp	Wed Dec 05 12:58:56 2018 +0100
+++ b/OrthancServer/ServerContext.cpp	Wed Dec 05 14:33:47 2018 +0100
@@ -235,8 +235,11 @@
   {
     {
       OrthancConfiguration::ReaderLock lock;
+
       queryRetrieveArchive_.reset(
         new SharedArchive(lock.GetConfiguration().GetUnsignedIntegerParameter("QueryRetrieveSize", 10)));
+      mediaArchive_.reset(
+        new SharedArchive(lock.GetConfiguration().GetUnsignedIntegerParameter("MediaArchiveSize", 1)));
       defaultLocalAet_ = lock.GetConfiguration().GetStringParameter("DicomAet", "ORTHANC");
       jobsEngine_.SetWorkersCount(lock.GetConfiguration().GetUnsignedIntegerParameter("ConcurrentJobs", 2));
     }