comparison OrthancServer/ServerContext.cpp @ 2825:8aa6aef11b70

New configuration option "OverwriteInstances" to choose how duplicate SOPInstanceUID are handled
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 19 Sep 2018 15:24:01 +0200
parents 925d8dc03a23
children ae8e72009e64
comparison
equal deleted inserted replaced
2824:0e1b79bc4a2d 2825:8aa6aef11b70
352 { 352 {
353 LOG(INFO) << "An incoming instance has been discarded by the filter"; 353 LOG(INFO) << "An incoming instance has been discarded by the filter";
354 return StoreStatus_FilteredOut; 354 return StoreStatus_FilteredOut;
355 } 355 }
356 356
357 {
358 // Remove the file from the DicomCache (useful if
359 // "OverwriteInstances" is set to "true")
360 boost::mutex::scoped_lock lock(dicomCacheMutex_);
361 dicomCache_.Invalidate(resultPublicId);
362 }
363
357 // TODO Should we use "gzip" instead? 364 // TODO Should we use "gzip" instead?
358 CompressionType compression = (compressionEnabled_ ? CompressionType_ZlibWithSize : CompressionType_None); 365 CompressionType compression = (compressionEnabled_ ? CompressionType_ZlibWithSize : CompressionType_None);
359 366
360 FileInfo dicomInfo = accessor.Write(dicom.GetBufferData(), dicom.GetBufferSize(), 367 FileInfo dicomInfo = accessor.Write(dicom.GetBufferData(), dicom.GetBufferSize(),
361 FileContentType_Dicom, compression, storeMD5_); 368 FileContentType_Dicom, compression, storeMD5_);