comparison 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
comparison
equal deleted inserted replaced
2949:e6204cd21443 2950:dc18d5804746
212 } 212 }
213 213
214 214
215 ServerContext::ServerContext(IDatabaseWrapper& database, 215 ServerContext::ServerContext(IDatabaseWrapper& database,
216 IStorageArea& area, 216 IStorageArea& area,
217 bool unitTesting) : 217 bool unitTesting,
218 size_t maxCompletedJobs) :
218 index_(*this, database, (unitTesting ? 20 : 500)), 219 index_(*this, database, (unitTesting ? 20 : 500)),
219 area_(area), 220 area_(area),
220 compressionEnabled_(false), 221 compressionEnabled_(false),
221 storeMD5_(true), 222 storeMD5_(true),
222 provider_(*this), 223 provider_(*this),
223 dicomCache_(provider_, DICOM_CACHE_SIZE), 224 dicomCache_(provider_, DICOM_CACHE_SIZE),
224 mainLua_(*this), 225 mainLua_(*this),
225 filterLua_(*this), 226 filterLua_(*this),
226 luaListener_(*this), 227 luaListener_(*this),
228 jobsEngine_(maxCompletedJobs),
227 #if ORTHANC_ENABLE_PLUGINS == 1 229 #if ORTHANC_ENABLE_PLUGINS == 1
228 plugins_(NULL), 230 plugins_(NULL),
229 #endif 231 #endif
230 done_(false), 232 done_(false),
231 haveJobsChanged_(false), 233 haveJobsChanged_(false),