comparison OrthancServer/Sources/ServerIndex.cpp @ 5482:4b51cf06b697 pg-transactions

merge mainline -> pg-transactions
author Alain Mazy <am@osimis.io>
date Thu, 21 Dec 2023 16:13:00 +0100
parents 176bc05f85f4 68e9f7815fb8
children 4dd50c4b985a
comparison
equal deleted inserted replaced
5466:dceed5e3d6a9 5482:4b51cf06b697
415 boost::mutex::scoped_lock lock(monitoringMutex_); 415 boost::mutex::scoped_lock lock(monitoringMutex_);
416 maximumStorageMode_ = mode; 416 maximumStorageMode_ = mode;
417 417
418 if (mode == MaxStorageMode_Recycle) 418 if (mode == MaxStorageMode_Recycle)
419 { 419 {
420 LOG(WARNING) << "Maximum Storage mode: Recycle"; 420 if (maximumStorageSize_ > 0 || maximumPatients_ > 0)
421 {
422 LOG(WARNING) << "Maximum Storage mode: Recycle";
423 }
421 } 424 }
422 else 425 else
423 { 426 {
424 LOG(WARNING) << "Maximum Storage mode: Reject"; 427 if (maximumStorageSize_ > 0 || maximumPatients_ > 0)
428 {
429 LOG(WARNING) << "Maximum Storage mode: Reject";
430 }
425 } 431 }
426 } 432 }
427 433
428 StandaloneRecycling(maximumStorageMode_, maximumStorageSize_, maximumPatients_); 434 StandaloneRecycling(maximumStorageMode_, maximumStorageSize_, maximumPatients_);
429 } 435 }