Mercurial > hg > orthanc
comparison OrthancServer/main.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 | 9d08edde614b |
comparison
equal
deleted
inserted
replaced
2824:0e1b79bc4a2d | 2825:8aa6aef11b70 |
---|---|
982 | 982 |
983 ServerContext context(database, storageArea, false /* not running unit tests */); | 983 ServerContext context(database, storageArea, false /* not running unit tests */); |
984 context.SetCompressionEnabled(Configuration::GetGlobalBoolParameter("StorageCompression", false)); | 984 context.SetCompressionEnabled(Configuration::GetGlobalBoolParameter("StorageCompression", false)); |
985 context.SetStoreMD5ForAttachments(Configuration::GetGlobalBoolParameter("StoreMD5ForAttachments", true)); | 985 context.SetStoreMD5ForAttachments(Configuration::GetGlobalBoolParameter("StoreMD5ForAttachments", true)); |
986 | 986 |
987 // New option in Orthanc 1.4.2 | |
988 context.GetIndex().SetOverwriteInstances(Configuration::GetGlobalBoolParameter("OverwriteInstances", false)); | |
989 | |
987 try | 990 try |
988 { | 991 { |
989 context.GetIndex().SetMaximumPatientCount(Configuration::GetGlobalUnsignedIntegerParameter("MaximumPatientCount", 0)); | 992 context.GetIndex().SetMaximumPatientCount(Configuration::GetGlobalUnsignedIntegerParameter("MaximumPatientCount", 0)); |
990 } | 993 } |
991 catch (...) | 994 catch (...) |