You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by rj...@apache.org on 2007/11/11 17:28:52 UTC

svn commit: r593921 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Author: rjung
Date: Sun Nov 11 08:28:51 2007
New Revision: 593921

URL: http://svn.apache.org/viewvc?rev=593921&view=rev
Log:
Merge is always done before post_config, so we
can use jk_mount_copy_all to set mountcopy during merge,
which simplifies mount copy logic.

JkMountCopy All should be weaker than JkMountCopy Off,
i.e. a vhost with JkMountCopy Off should not inherit
the mounts, even if JkMountCopy All is globally set.

Modified:
    tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593921&r1=593920&r2=593921&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 08:28:51 2007
@@ -2458,6 +2458,9 @@
         }
     }
 
+   if (overrides->mountcopy == JK_UNSET && jk_mount_copy_all == JK_TRUE) {        
+       overrides->mountcopy == JK_TRUE;
+   }
    if (overrides->uri_to_context) {        
 /* jk_map_copy() preserves existing entries in overrides map */
         if (jk_map_copy(base->uri_to_context, overrides->uri_to_context) == JK_FALSE) {
@@ -2826,7 +2829,7 @@
                         }
                     }
                     else {
-                        if (sconf->mountcopy == JK_TRUE || jk_mount_copy_all == JK_TRUE) {
+                        if (sconf->mountcopy == JK_TRUE) {
                             sconf->uw_map = conf->uw_map;
                         }
                     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org