]> granicus.if.org Git - apache/commitdiff
Merge r1501369 from trunk:
authorJim Jagielski <jim@apache.org>
Tue, 9 Jul 2013 16:36:24 +0000 (16:36 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 9 Jul 2013 16:36:24 +0000 (16:36 +0000)
Ensure balancer runs after proxy for mutex creation

Reviewed/backported by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1501370 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_balancer.c

index 1e215126b495d1be4625e5941c8a583a0d4fb461..177de5a2f2ff8a105bb2772eeca25ea8020ca66c 100644 (file)
@@ -1686,8 +1686,9 @@ static void ap_proxy_balancer_register_hook(apr_pool_t *p)
      * initializes
      */
     static const char *const aszPred[] = { "mpm_winnt.c", "mod_slotmem_shm.c", NULL};
+    static const char *const aszPred2[] = { "mod_proxy.c", NULL};
      /* manager handler */
-    ap_hook_post_config(balancer_post_config, NULL, NULL, APR_HOOK_MIDDLE);
+    ap_hook_post_config(balancer_post_config, aszPred2, NULL, APR_HOOK_MIDDLE);
     ap_hook_pre_config(balancer_pre_config, NULL, NULL, APR_HOOK_MIDDLE);
     ap_hook_handler(balancer_handler, NULL, NULL, APR_HOOK_FIRST);
     ap_hook_child_init(balancer_child_init, aszPred, NULL, APR_HOOK_MIDDLE);