comparison OrthancServer/Sources/ServerIndex.cpp @ 5822:ca5622c27d6c attach-custom-data tip

merged find-refactoring -> attach-custom-data
author Alain Mazy <am@orthanc.team>
date Tue, 01 Oct 2024 16:01:50 +0200
parents 023a99146dd0 7c2b4fa94633
children
comparison
equal deleted inserted replaced
5815:42a7fbf13359 5822:ca5622c27d6c
276 void ServerIndex::UpdateStatisticsThread(ServerIndex* that, 276 void ServerIndex::UpdateStatisticsThread(ServerIndex* that,
277 unsigned int threadSleepGranularityMilliseconds) 277 unsigned int threadSleepGranularityMilliseconds)
278 { 278 {
279 Logging::SetCurrentThreadName("DB-STATS"); 279 Logging::SetCurrentThreadName("DB-STATS");
280 280
281 static const unsigned int SLEEP_SECONDS = 60; 281 static const unsigned int SLEEP_SECONDS = 10;
282 282
283 if (threadSleepGranularityMilliseconds > 1000) 283 if (threadSleepGranularityMilliseconds > 1000)
284 { 284 {
285 throw OrthancException(ErrorCode_ParameterOutOfRange); 285 throw OrthancException(ErrorCode_ParameterOutOfRange);
286 } 286 }
357 bool readOnly) : 357 bool readOnly) :
358 StatelessDatabaseOperations(db, readOnly), 358 StatelessDatabaseOperations(db, readOnly),
359 done_(false), 359 done_(false),
360 maximumStorageMode_(MaxStorageMode_Recycle), 360 maximumStorageMode_(MaxStorageMode_Recycle),
361 maximumStorageSize_(0), 361 maximumStorageSize_(0),
362 maximumPatients_(0) 362 maximumPatients_(0),
363 readOnly_(readOnly)
363 { 364 {
364 SetTransactionContextFactory(new TransactionContextFactory(context)); 365 SetTransactionContextFactory(new TransactionContextFactory(context));
365 366
366 // Initial recycling if the parameters have changed since the last 367 // Initial recycling if the parameters have changed since the last
367 // execution of Orthanc 368 // execution of Orthanc