diff OrthancServer/ServerContext.cpp @ 2950:dc18d5804746

support of JobsHistorySize set to zero
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 30 Nov 2018 17:19:57 +0100
parents 4767d36679ed
children bfee0b9f3209
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp	Thu Nov 29 20:36:55 2018 +0100
+++ b/OrthancServer/ServerContext.cpp	Fri Nov 30 17:19:57 2018 +0100
@@ -214,7 +214,8 @@
 
   ServerContext::ServerContext(IDatabaseWrapper& database,
                                IStorageArea& area,
-                               bool unitTesting) :
+                               bool unitTesting,
+                               size_t maxCompletedJobs) :
     index_(*this, database, (unitTesting ? 20 : 500)),
     area_(area),
     compressionEnabled_(false),
@@ -224,6 +225,7 @@
     mainLua_(*this),
     filterLua_(*this),
     luaListener_(*this),
+    jobsEngine_(maxCompletedJobs),
 #if ORTHANC_ENABLE_PLUGINS == 1
     plugins_(NULL),
 #endif