changeset 5047:207f259c41c5

fix for storage cache for compressed file
author Alain Mazy <am@osimis.io>
date Wed, 29 Jun 2022 09:43:35 +0200
parents 2b3b0ab88c1d
children 22966345eaba
files OrthancFramework/Sources/FileStorage/StorageAccessor.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Sources/FileStorage/StorageAccessor.cpp	Wed Jun 29 08:10:28 2022 +0200
+++ b/OrthancFramework/Sources/FileStorage/StorageAccessor.cpp	Wed Jun 29 09:43:35 2022 +0200
@@ -133,7 +133,7 @@
           }
         }
 
-        cache_.Add(uuid, type, compressed);
+        cache_.Add(uuid, type, data, size);  // always add uncompressed data to cache
         return FileInfo(uuid, type, size, md5,
                         CompressionType_ZlibWithSize, compressed.size(), compressedMD5);
       }