6f61c36ed87866636fbc8bae4da3842205d81e5b 1611978 |
|
20-Jul-2014 |
jailletc36 |
Add missing APLOGNO.
Refactor to keep APLOGNO on the same line as ap_log_error, when applicable. |
185aa71728867671e105178b4c66fbc22b65ae26 1209766 |
|
03-Dec-2011 |
sf |
Add lots of unique tags to error log messages |
678a15e91d6a44569c956445442731bb64a98a63 1208110 |
|
29-Nov-2011 |
sf |
Remove more log message prefixes that are now redundant as the
the error log format includes the module name. |
3d0be09a2bbec6d9a2ba0ced23f5a790d8018d38 1208078 |
|
29-Nov-2011 |
minfrin |
mod_dbd: The dbd_prepared_init() function reported the result of the last
prepared statement, obscuring earlier errors. Fixed. |
36ef8f77bffe75d1aa327882be1b5bdbe2ff567a 951895 |
|
06-Jun-2010 |
sf |
Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
advantage of per-module loglevels |
e13e78bd336fa4473d9e6d0edc641681e9bc2a3d 806692 |
|
21-Aug-2009 |
niq |
Switch mod_dbd to using APR_STATUS_IS_foo macros in error handling |
8de2b4a02fabf2320240e7ded88eb22d07190dd9 767806 |
|
23-Apr-2009 |
wrowe |
Fix module scope, to avoid this, copy and past from loadable modules, not core |
137e484e5f984ceff1102e1212dda8ac0413231a 766938 |
|
21-Apr-2009 |
niq |
mod_dbd: add DBDInitSQL command. PR 46827
Patch by Marko Kevac. |
99637b86da3e42d8411f4cd2d4e367093d35a980 708820 |
|
29-Oct-2008 |
pquerna |
* modules/database/mod_dbd.c
(dbd_child_init): New function, wrapper around dbd_setup_init.
(dbd_hooks): Call dbd_child_init instead of casting dbd_setup_init. |
7c8fcb0b802dc9c3c79d1935f022e596cc3f41df 689246 |
|
26-Aug-2008 |
niq |
Fix typo in r689224 (thanks rpluem for spotting it) |
43c75c244380c232e9f778eedf017810b3ac58b2 689224 |
|
26-Aug-2008 |
niq |
Try to get a meaningful error message when dbd_open fails |
f702f447470d1c5521711054d41f0e92c871945a 664160 |
|
07-Jun-2008 |
wrowe |
Revert prior change; some of these are registered
and therefore the wrong declspec. But why is the
question, and this should be reviewed before release. |
73a9d38dad6cf8ebc7cdc839431dc7c98912a6a4 664080 |
|
06-Jun-2008 |
wrowe |
No.
_NONSTD refers to type fn (arg, arg, ...) incomplete declarations |
0481ff0599c9e3c0c7ad5c1930939dcdac908582 646453 |
|
09-Apr-2008 |
chrisd |
Handle integer configuration directive parameters with a dedicated
function, akin to dbd_param_flag(). Only needed when APR_HAS_THREADS. |
a131a7be4abddf5487cd729b411dbf679aee846c 553563 |
|
05-Jul-2007 |
fuankg |
reverted r553031 since it breaks Linux/Unix platform builds. |
756b2810ac38712efba301bfbf58334a37107b53 553031 |
|
04-Jul-2007 |
fuankg |
changed error message to use APU_DBD_DRIVER_FMT for correct driver name;
removed platform ifdefs. |
1ec08bba27851a4ffca9e6eb88d5c01b5fb6affb 539687 |
|
19-May-2007 |
chrisd |
apr_dbd_check_conn() just returns APR_SUCCESS or APR_EGENERAL, so we
don't actually have a driver-specific value to pass to apr_dbd_error(),
but that's OK because most/all drivers just ignore this value anyway |
89a3e9cd490a571e342947e39a9834fa5405cee5 521230 |
|
22-Mar-2007 |
fuankg |
added proper error message for NetWare. |
c7c8dd19c90c5ee7205ccdf443585d14da3daece 503931 |
|
06-Feb-2007 |
chrisd |
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. |
bed7fc979e00a75f76ed79245f003b52e91d40ab 496831 |
|
16-Jan-2007 |
chrisd |
We now create memory sub-pools for each DB connection and close DB
connections in a pool cleanup function. This simplifies the ap_dbd_acquire()
and ap_dbd_cacquire() functions, and also stops us from leaking ap_dbd_t
structures when using reslists.
We ensure that prepared statements are destroyed before their DB connection
is closed, in case any drivers would have problems cleaning up prepared
statements after the DB connection is closed.
The combination of reslists and memory pool cleanup functions was causing
segfaults when child processes exited, as reported in PR 39985. To prevent
this, we register dbd_destroy() as a cleanup that will execute prior to
the internal cleanup function registered by apr_reslist_create(). When the
reslist's memory pool is destroyed, dbd_destroy() informs dbd_destruct() not
to do anything when subsequently called by the reslist's internal cleanup
function.
We avoid the use of s->process->pool (the global pool) since it isn't
destroyed by exiting child processes in most multi-process MPMs. |
7d67f79d431d1ca96e956d9f196ae4444ae3b41e 492394 |
|
04-Jan-2007 |
chrisd |
Fix several strict compiler warnings for both the threaded
and non-threaded versions. |
e4edb2d4252459327f6edd834de6825873e60134 491884 |
|
02-Jan-2007 |
chrisd |
Handle error conditions in dbd_construct() properly. Simplify
ap_dbd_open() and use correct arguments to apr_dbd_error() when
non-threaded. Register correct cleanup data in non-threaded
ap_dbd_acquire() and ap_dbd_cacquire(). Clean up configuration data
and merge function. Use ap_log_error() wherever possible. |
1563acf81b359c9e90e0c76d36d999dcea1bab44 491729 |
|
02-Jan-2007 |
chrisd |
Rename functions and variables for consistency, and move some functions
around for readability, prior to forthcoming functional changes. |
d8067e05b37c4f655c43d66fd10ec5bafea086ea 485311 |
|
11-Dec-2006 |
niq |
Stop mod_dbd emitting bogus error messages when it's loaded
but not configured. |
14ca95584d6a72acf5ccbcf394d7bfba8ea8a12f 483630 |
|
07-Dec-2006 |
rpluem |
* Add the missing include of http_request.h and thus fix a compiler warning. |
dd6199828976e6c7850ca6abd7a1ceba99e9ed16 481509 |
|
02-Dec-2006 |
chrisd |
Stash DBD connections in request_config of initial request
only, or else sub-requests and internal redirections may cause
entire DBD pool to be stashed in a single HTTP request. |
e605dd6afa940f799c873ffeaa5e25fa4ea9a2c8 466641 |
|
22-Oct-2006 |
minfrin |
mod_dbd: Key the storage of prepared statements on the hex string
value of server_rec, rather than the server name, as the server name
may change (eg when the server name is set) at any time, causing
weird behaviour in modules dependent on mod_dbd. |
eb20b106fd9012d9234989c39583673b6795d2b1 432562 |
|
18-Aug-2006 |
niq |
Log a message if we try to prepare a statement not attached to a hostname.
This fix supplements r432560 (don't crash). |
2b0e1a9c8e712d0b1f220889e8bf6320c510f845 432560 |
|
18-Aug-2006 |
niq |
Don't use NULL s->server_hostname as hash lookup key.
Reported by paritosh (at limewire.co.in) on dev@httpd (thread
Re: apache 2.2 crashes at the start time in mod_dbd.c then preparing AuthDBDUserPWQuery)
Fixed by paritosh and Yours Truly. |
b374219943dfeb706d3d8586161c507039bf5fb8 424798 |
|
23-Jul-2006 |
niq |
Remove dependence on server config from ap_dbd_prepare, as that may
be called in per-directory config functions where there is no
server context causing segfault.
Discussion at
http://mail-archives.apache.org/mod_mbox/httpd-dev/200607.mbox/<831327593.20060720023332%40engec.ru>
and subsequent thread. |
842ae4bd224140319ae7feec1872b93dfd491143 420983 |
|
11-Jul-2006 |
fielding |
update license header text |
3dd85efb50c7afc813453e3d7dc980f4d4a51b24 413015 |
|
09-Jun-2006 |
niq |
PR#39761
Make the error message more meaningful when DBD is configured
without a driver. |
fbce0787f5d8da463763a36236f477f71aef6b3c 396310 |
|
23-Apr-2006 |
niq |
PR#39386: Fix merge-config to support prepared statements (Brian J. France) |
65194b12fbf330d9cd4a3d1c07f0ecc0177941bc 386321 |
|
16-Mar-2006 |
niq |
Log a better error message if initialisation fails on prepared statements. |
dc95d1a256439cca72b72e813f5a13e824eefb01 354400 |
|
06-Dec-2005 |
niq |
Improve defaults from 'test' values (and get meaningful errors on
startup if database is down); trivial tidyups. |
fbed00790d2ac557d4c14db171ba4ff233df8f45 349768 |
|
29-Nov-2005 |
colm |
Optional functions are of __cdecl the kind on win32, due to "APU_DECLARE_NONSTD
apr_dynamic_fn_register" from apr-util, so we can't use __stdcall. Declare our
functions as non-std. |
6994d7966a4db4f68161ca5cfaaaf22c26a9e1d4 349752 |
|
29-Nov-2005 |
colm |
Give DBD a set of _DECLARE macros consistent with other modules, so that
_EXPORT and _STATIC and be turned on/off more easily. |
8e978e3ac6965b08a19b7baa94ca8ac5bc3a5654 348026 |
|
22-Nov-2005 |
niq |
PR#37553
Redesign of pools handling in mod_dbd
Submitted: Chris Darroch, Reviewed: Nick Kew |
5a43bbcdc62b6a11e8c040c83764748af4ef3c34 348008 |
|
22-Nov-2005 |
niq |
Wrap exported functions in AP_DECLARE |
985e9c42880c9b0ded7c99d780efa917aec4b4ae 345128 |
|
16-Nov-2005 |
niq |
Add defaults and comments for better robustness against misuse
(based on comments from Chris Darroch). |
6078848fce1bb946f8ef7a53bb188b9b975b56b8 345040 |
|
16-Nov-2005 |
niq |
Fix (Chris Darroch) to register cleanup for persistent connection
in the no-threads case. |
fae764c11cd956df4868dc5e7c1a0b42f7d3fd54 344140 |
|
14-Nov-2005 |
niq |
Fix driver-dependent potential memor-use bug in preparing statements |
be3aa1aa8be4c7001a6ed396631c413f66998673 332142 |
|
09-Nov-2005 |
niq |
Work if check_conn is NOTIMPL in a driver |
53e159685abb4e4d2aefa49874d38b625e6e61e2 307439 |
|
09-Oct-2005 |
niq |
Support dbd connections tied to the conn_rec. |
65bd81780b7b0dd421c16072e144f623718413b0 292769 |
|
30-Sep-2005 |
niq |
Fix pool in dbd_construct, and set sensible config defaults
(based on feedback from Brian France) |
7dd2be584ba36c686d9f748b55451f54f0043bcc 291100 |
|
23-Sep-2005 |
niq |
Add note on DBD APIs to Module Developer Changes in new_features.
Update cast in mod_dbd.c as suggested by jorton. |
f6c1e179739924dd4de533826ed2dfe7e7ac0930 290711 |
|
21-Sep-2005 |
niq |
Eliminate possible compiler warnings pointed out by Joe. |
b85a3d8639df8d6dfc52cceb8f45dba021e86c89 290672 |
|
21-Sep-2005 |
niq |
Move mod_dbd from /experimental/ to /database/ |