From f86177e844ce00124a0c6a68053cc82f4bd9f2a6 Mon Sep 17 00:00:00 2001 From: cristy Date: Mon, 7 Jan 2013 00:19:11 +0000 Subject: [PATCH] --- MagickCore/cache.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/MagickCore/cache.c b/MagickCore/cache.c index fbf311513..220f54d4a 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -62,6 +62,7 @@ #include "MagickCore/policy.h" #include "MagickCore/quantum.h" #include "MagickCore/random_.h" +#include "MagickCore/registry.h" #include "MagickCore/resource_.h" #include "MagickCore/semaphore.h" #include "MagickCore/splay-tree.h" @@ -70,6 +71,11 @@ #include "MagickCore/thread-private.h" #include "MagickCore/utility.h" #include "MagickCore/utility-private.h" +#if defined(MAGICKCORE_HAVE_SOCKET) +#include +#include +#include +#endif #if defined(MAGICKCORE_ZLIB_DELEGATE) #include "zlib.h" #endif @@ -3866,7 +3872,11 @@ static MagickBooleanType OpenPixelCache(Image *image,const MapMode mode, status=AcquireMagickResource(DiskResource,cache_info->length); if (status == MagickFalse) { - if (0) + const char + *hosts; + + hosts=GetImageRegistry(StringRegistryType,"cache-hosts",exception); + if (hosts != (const char *) NULL) abort(); /* create distributed cache */ (void) ThrowMagickException(exception,GetMagickModule(),CacheError, "CacheResourcesExhausted","`%s'",image->filename); -- 2.40.0