Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerIndex.cpp @ 4627:f7d5372b59b3 db-changes
handling revisions of attachments
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 20 Apr 2021 15:11:59 +0200 |
parents | 67d112ef680f |
children | 66109d24d26e |
comparison
equal
deleted
inserted
replaced
4626:686f189a903d | 4627:f7d5372b59b3 |
---|---|
544 instanceMetadata, dicomSummary, attachments, metadata, origin, overwrite, hasTransferSyntax, | 544 instanceMetadata, dicomSummary, attachments, metadata, origin, overwrite, hasTransferSyntax, |
545 transferSyntax, hasPixelDataOffset, pixelDataOffset, maximumStorageSize, maximumPatients); | 545 transferSyntax, hasPixelDataOffset, pixelDataOffset, maximumStorageSize, maximumPatients); |
546 } | 546 } |
547 | 547 |
548 | 548 |
549 StoreStatus ServerIndex::AddAttachment(const FileInfo& attachment, | 549 StoreStatus ServerIndex::AddAttachment(int64_t& newRevision, |
550 const std::string& publicId) | 550 const FileInfo& attachment, |
551 const std::string& publicId, | |
552 bool hasOldRevision, | |
553 int64_t oldRevision) | |
551 { | 554 { |
552 uint64_t maximumStorageSize; | 555 uint64_t maximumStorageSize; |
553 unsigned int maximumPatients; | 556 unsigned int maximumPatients; |
554 | 557 |
555 { | 558 { |
557 maximumStorageSize = maximumStorageSize_; | 560 maximumStorageSize = maximumStorageSize_; |
558 maximumPatients = maximumPatients_; | 561 maximumPatients = maximumPatients_; |
559 } | 562 } |
560 | 563 |
561 return StatelessDatabaseOperations::AddAttachment( | 564 return StatelessDatabaseOperations::AddAttachment( |
562 attachment, publicId, maximumStorageSize, maximumPatients); | 565 newRevision, attachment, publicId, maximumStorageSize, maximumPatients, hasOldRevision, oldRevision); |
563 } | 566 } |
564 } | 567 } |