From 3f203d921e5856ba60069af084fd0519902c4efa Mon Sep 17 00:00:00 2001 From: Cristy Date: Wed, 1 May 2019 07:29:57 -0400 Subject: [PATCH] https://imagemagick.org/discourse-server/viewtopic.php?f=1&t=24644 --- MagickCore/cache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MagickCore/cache.c b/MagickCore/cache.c index f8ebd4a17..8342d9286 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -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; -- 2.40.0