diff OrthancServer/Sources/Database/StatelessDatabaseOperations.h @ 4640:66109d24d26e

"ETag" headers for metadata and attachments now allow strong comparison (MD5 is included)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 26 Apr 2021 15:22:44 +0200
parents f7d5372b59b3
children da1edb7d6332
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/StatelessDatabaseOperations.h	Thu Apr 22 13:27:57 2021 +0200
+++ b/OrthancServer/Sources/Database/StatelessDatabaseOperations.h	Mon Apr 26 15:22:44 2021 +0200
@@ -580,7 +580,8 @@
                      MetadataType type,
                      const std::string& value,
                      bool hasOldRevision,
-                     int64_t oldRevision);
+                     int64_t oldRevision,
+                     const std::string& oldMD5);
 
     // Same as "SetMetadata()", but doesn't care about revisions
     void OverwriteMetadata(const std::string& publicId,
@@ -590,7 +591,8 @@
     bool DeleteMetadata(const std::string& publicId,
                         MetadataType type,
                         bool hasRevision,
-                        int64_t revision);
+                        int64_t revision,
+                        const std::string& md5);
 
     uint64_t IncrementGlobalSequence(GlobalProperty sequence,
                                      bool shared);
@@ -606,7 +608,8 @@
     bool DeleteAttachment(const std::string& publicId,
                           FileContentType type,
                           bool hasRevision,
-                          int64_t revision);
+                          int64_t revision,
+                          const std::string& md5);
 
     void LogChange(int64_t internalId,
                    ChangeType changeType,
@@ -634,6 +637,7 @@
                               uint64_t maximumStorageSize,
                               unsigned int maximumPatients,
                               bool hasOldRevision,
-                              int64_t oldRevision);
+                              int64_t oldRevision,
+                              const std::string& oldMd5);
   };
 }