[mapserver-commits] r12390 - trunk/mapserver/mapcache/src

svn at osgeo.org svn at osgeo.org
Fri Aug 26 07:21:45 EDT 2011


Author: tbonfort
Date: 2011-08-26 04:21:44 -0700 (Fri, 26 Aug 2011)
New Revision: 12390

Modified:
   trunk/mapserver/mapcache/src/cache_disk.c
Log:
add case_sensitive option to values dimension.

closes issue 89.
thomas.bonfort | 2011-07-02 14:52:03 +0200 (Sat, 02 Jul 2011)

Modified: trunk/mapserver/mapcache/src/cache_disk.c
===================================================================
--- trunk/mapserver/mapcache/src/cache_disk.c	2011-08-26 11:21:41 UTC (rev 12389)
+++ trunk/mapserver/mapcache/src/cache_disk.c	2011-08-26 11:21:44 UTC (rev 12390)
@@ -221,8 +221,14 @@
    *hackptr2 = '\0';
    
    if(APR_SUCCESS != (ret = apr_dir_make_recursive(filename,APR_OS_DEFAULT,ctx->pool))) {
-       ctx->set_error(ctx, 500, "failed to create directory %s: %s",filename, apr_strerror(ret,errmsg,120));
-       return;
+       /* 
+        * apr_dir_make_recursive sometimes sends back this error, although it should not.
+        * ignore this one
+        */
+       if(!APR_STATUS_IS_EEXIST(ret)) {
+          ctx->set_error(ctx, 500, "failed to create directory %s: %s",filename, apr_strerror(ret,errmsg,120));
+          return;
+       }
    }
    *hackptr2 = '/';
 



More information about the mapserver-commits mailing list