]> granicus.if.org Git - imagemagick/commitdiff
https://imagemagick.org/discourse-server/viewtopic.php?f=1&t=24644
authorCristy <urban-warrior@imagemagick.org>
Wed, 1 May 2019 11:29:57 +0000 (07:29 -0400)
committerCristy <urban-warrior@imagemagick.org>
Wed, 1 May 2019 11:29:57 +0000 (07:29 -0400)
MagickCore/cache.c

index f8ebd4a1731f38a6ed83f8b6c9d1db8accd1dcfa..8342d9286fdc26c952c4afd7702fd89df9223ce4 100644 (file)
@@ -4029,12 +4029,12 @@ MagickExport MagickBooleanType PersistPixelCache(Image *image,
           "attach persistent cache");
       (void) CopyMagickString(cache_info->cache_filename,filename,
         MagickPathExtent);
-      cache_info->type=DiskCache;
+      cache_info->type=MapCache;
       cache_info->offset=(*offset);
       if (OpenPixelCache(image,ReadMode,exception) == MagickFalse)
         return(MagickFalse);
       *offset+=cache_info->length+page_size-(cache_info->length % page_size);
-      return(SyncImagePixelCache(image,exception));
+      return(MagickTrue);
     }
   /*
     Clone persistent pixel cache.
@@ -4047,7 +4047,7 @@ MagickExport MagickBooleanType PersistPixelCache(Image *image,
       return(MagickFalse);
     }
   clone_info=(CacheInfo *) ClonePixelCache(cache_info);
-  clone_info->type=DiskCache;
+  clone_info->type=MapCache;
   (void) CopyMagickString(clone_info->cache_filename,filename,MagickPathExtent);
   clone_info->file=(-1);
   clone_info->storage_class=cache_info->storage_class;