]> granicus.if.org Git - apache/commit
Introduce configuration groups to allow inheritance by virtual hosts of
authorChris Darroch <chrisd@apache.org>
Tue, 6 Feb 2007 00:25:15 +0000 (00:25 +0000)
committerChris Darroch <chrisd@apache.org>
Tue, 6 Feb 2007 00:25:15 +0000 (00:25 +0000)
commit11e2a1a700df54561d7c914c8dd8c96503b9b7e9
tree0f376534d4578fe5295f9afcda2d0b0f02284dd3
parent2c7c4d559547bbc39c15c3c5d24336e14a45b441
Introduce configuration groups to allow inheritance by virtual hosts of
database configurations from the main server.  The post_config hook function
determines the minimal set of distinct configurations necessary so that
database connection pools are shared between virtual hosts whenever possible.

The SQL statements which should be prepared for each database connection
are now stored in a hash for each virtual host during the configuration
phase, and these hashes are merged in the normal manner using
apr_hash_overlay() with that of the main server.  This allows for statements
to be de-registered by DBDPrepareSQL, if desired.  The post_config hook
function then compares the statements registered for each virtual host
when determining if a separate configuration group is required.  The
changes in r424798, r432560, r432562, and r466641, which still have problems
with configuration inheritance, are therefore no longer necessary.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@503931 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
modules/database/mod_dbd.c