Mercurial > hg > orthanc
diff OrthancServer/ServerJobs/ArchiveJob.cpp @ 2965:9c0b0a6d8b54
MediaArchiveSize configuration option
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 05 Dec 2018 14:33:47 +0100 |
parents | bbfd95a0c429 |
children | 10c610e80b15 |
line wrap: on
line diff
--- a/OrthancServer/ServerJobs/ArchiveJob.cpp Wed Dec 05 12:58:56 2018 +0100 +++ b/OrthancServer/ServerJobs/ArchiveJob.cpp Wed Dec 05 14:33:47 2018 +0100 @@ -778,11 +778,11 @@ }; - ArchiveJob::ArchiveJob(boost::shared_ptr<TemporaryFile>& target, + ArchiveJob::ArchiveJob(boost::shared_ptr<TemporaryFile>& synchronousTarget, ServerContext& context, bool isMedia, bool enableExtendedSopClass) : - target_(target), + synchronousTarget_(synchronousTarget), context_(context), archive_(new ArchiveIndex(ResourceType_Patient)), // root isMedia_(isMedia), @@ -791,7 +791,7 @@ instancesCount_(0), uncompressedSize_(0) { - if (target.get() == NULL) + if (synchronousTarget.get() == NULL) { throw OrthancException(ErrorCode_NullPointer); } @@ -824,7 +824,7 @@ throw OrthancException(ErrorCode_BadSequenceOfCalls); } - writer_.reset(new ZipWriterIterator(*target_, context_, *archive_, + writer_.reset(new ZipWriterIterator(*synchronousTarget_, context_, *archive_, isMedia_, enableExtendedSopClass_)); instancesCount_ = writer_->GetInstancesCount(); @@ -836,7 +836,7 @@ { assert(writer_.get() != NULL); - if (target_.unique()) + if (synchronousTarget_.unique()) { LOG(WARNING) << "A client has disconnected while creating an archive"; return JobStepResult::Failure(ErrorCode_NetworkProtocol);