]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
PR: 45076
authorJim Jagielski <jim@apache.org>
Mon, 29 Aug 2011 15:20:16 +0000 (15:20 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 29 Aug 2011 15:20:16 +0000 (15:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1162854 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
server/main.c

diff --git a/CHANGES b/CHANGES
index 75231f0029ff2441db43f6fa54496bcccccd1049..edceca77a1e7888dd9e1832a9ecfb5d2cd62c902 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,7 +1,8 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.2.20
 
-
+  *) core: Do the hook sorting earlier so that the hooks are properly sorted
+     for the pre_config hook and during parsing the config. [Stefan Fritsch] 
 
 Changes with Apache 2.2.19
 
diff --git a/STATUS b/STATUS
index 1c6dcd69d36523c3117112de28f2c1faeb4556f5..6b171843c91c64459c9f48fe2a374381793577c4 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -92,14 +92,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  * Sort hooks before running pre-config hook.
-    Trunk patch: http://svn.apache.org/viewvc?rev=1032002&view=rev
-      (Omit trunk's config*m4 change which adjusted the order of statically
-      linked modules.)
-    PR: 45076
-    2.2.x patch: http://people.apache.org/~trawick/1032002-2.2.x.txt
-    +1: trawick, sf, covener
-
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
   [ New proposals should be added at the end of the list ]
 
index b893d2814eae7e7371dc8ff0a19f5ade6b614ba7..04ed6c78d4731334c04d1b12a834d47c013ed16b 100644 (file)
@@ -633,6 +633,7 @@ int main(int argc, const char * const argv[])
     if (!server_conf) {
         destroy_and_exit_process(process, 1);
     }
+    apr_hook_sort_all();
 
     if (ap_run_pre_config(pconf, plog, ptemp) != OK) {
         ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR, 0,
@@ -645,7 +646,6 @@ int main(int argc, const char * const argv[])
     if (rv == OK) {
         ap_fixup_virtual_hosts(pconf, server_conf);
         ap_fini_vhost_config(pconf, server_conf);
-        apr_hook_sort_all();
 
         if (configtestonly) {
             ap_run_test_config(pconf, server_conf);
@@ -704,6 +704,7 @@ int main(int argc, const char * const argv[])
         if (!server_conf) {
             destroy_and_exit_process(process, 1);
         }
+        apr_hook_sort_all();
 
         if (ap_run_pre_config(pconf, plog, ptemp) != OK) {
             ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR,
@@ -717,7 +718,6 @@ int main(int argc, const char * const argv[])
         }
         ap_fixup_virtual_hosts(pconf, server_conf);
         ap_fini_vhost_config(pconf, server_conf);
-        apr_hook_sort_all();
         apr_pool_clear(plog);
         if (ap_run_open_logs(pconf, plog, ptemp, server_conf) != OK) {
             ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR,