]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 7 Jan 2013 00:19:11 +0000 (00:19 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 7 Jan 2013 00:19:11 +0000 (00:19 +0000)
MagickCore/cache.c

index fbf3115136d2c762f074f1c78e6c6618fcdd9e1e..220f54d4a5cf9e3b2158f657cf2a507d36caf6fa 100644 (file)
@@ -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"
 #include "MagickCore/thread-private.h"
 #include "MagickCore/utility.h"
 #include "MagickCore/utility-private.h"
+#if defined(MAGICKCORE_HAVE_SOCKET)
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#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);