*) mod_rewrite: Perform child initialization on the rewrite log lock.
This fixes a log corruption issue when flock-based serialization
is used (e.g., FreeBSD). [Jeff Trawick]
Reviewed by: jerenkrantz, nd
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@100481
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.48
+ *) mod_rewrite: Perform child initialization on the rewrite log lock.
+ This fixes a log corruption issue when flock-based serialization
+ is used (e.g., FreeBSD). [Jeff Trawick]
+
*) Don't respect the Server header field as set by modules and CGIs.
As with 1.3, for proxy requests any such field is from the origin
server; otherwise it will have our server info as controlled by
APACHE 2.0 STATUS: -*-text-*-
-Last modified at [$Date: 2003/07/07 19:11:34 $]
+Last modified at [$Date: 2003/07/07 19:54:53 $]
Release:
build/.cvsignore 1.4
+1: trawick, jerenkrantz
- * mod_rewrite: Perform child initialization on the rewrite log
- lock. This fixes a log corruption issue when flock-based
- serialization is used (e.g., FreeBSD).
- modules/mappers/mod_rewrite.c 1.152
- +1: trawick, jerenkrantz, nd
-
* Unix: Handle permissions settings for flock-based mutexes in
unixd_set_global|proc_mutex_perms(). Allow the functions to
be called for any type of mutex. PR 20312
}
}
+ rv = apr_global_mutex_child_init(&rewrite_log_lock, NULL, p);
+ if (rv != APR_SUCCESS) {
+ ap_log_error(APLOG_MARK, APLOG_CRIT, rv, s,
+ "mod_rewrite: could not init rewrite log lock in child");
+ }
+
/* create the lookup cache */
cachep = init_cache(p);
}