Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerIndex.cpp Mon Apr 19 10:28:43 2021 +0200 +++ b/OrthancServer/Sources/ServerIndex.cpp Tue Apr 20 15:11:59 2021 +0200 @@ -546,8 +546,11 @@ } - StoreStatus ServerIndex::AddAttachment(const FileInfo& attachment, - const std::string& publicId) + StoreStatus ServerIndex::AddAttachment(int64_t& newRevision, + const FileInfo& attachment, + const std::string& publicId, + bool hasOldRevision, + int64_t oldRevision) { uint64_t maximumStorageSize; unsigned int maximumPatients; @@ -559,6 +562,6 @@ } return StatelessDatabaseOperations::AddAttachment( - attachment, publicId, maximumStorageSize, maximumPatients); + newRevision, attachment, publicId, maximumStorageSize, maximumPatients, hasOldRevision, oldRevision); } }