/[Apache-SVN]/httpd/httpd/trunk/modules/database/mod_dbd.c
ViewVC logotype

Log of /httpd/httpd/trunk/modules/database/mod_dbd.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 806692 - (view) (annotate) - [select for diffs]
Modified Fri Aug 21 19:40:17 2009 UTC (3 months ago) by niq
File length: 29885 byte(s)
Diff to previous 767806 (colored)
Switch mod_dbd to using APR_STATUS_IS_foo macros in error handling

Revision 767806 - (view) (annotate) - [select for diffs]
Modified Thu Apr 23 05:38:45 2009 UTC (7 months ago) by wrowe
File length: 29810 byte(s)
Diff to previous 766938 (colored)
Fix module scope, to avoid this, copy and past from loadable modules, not core

Revision 766938 - (view) (annotate) - [select for diffs]
Modified Tue Apr 21 01:29:15 2009 UTC (7 months, 1 week ago) by niq
File length: 29809 byte(s)
Diff to previous 708820 (colored)
mod_dbd: add DBDInitSQL command.  PR 46827
Patch by Marko Kevac.

Revision 708820 - (view) (annotate) - [select for diffs]
Modified Wed Oct 29 08:10:21 2008 UTC (12 months, 4 weeks ago) by pquerna
File length: 27784 byte(s)
Diff to previous 689246 (colored)
* 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.

Revision 689246 - (view) (annotate) - [select for diffs]
Modified Tue Aug 26 21:40:29 2008 UTC (15 months ago) by niq
File length: 27578 byte(s)
Diff to previous 689224 (colored)
Fix typo in r689224 (thanks rpluem for spotting it)

Revision 689224 - (view) (annotate) - [select for diffs]
Modified Tue Aug 26 21:03:46 2008 UTC (15 months ago) by niq
File length: 27579 byte(s)
Diff to previous 664160 (colored)
Try to get a meaningful error message when dbd_open fails

Revision 664160 - (view) (annotate) - [select for diffs]
Modified Fri Jun 6 22:21:07 2008 UTC (17 months, 2 weeks ago) by wrowe
File length: 27534 byte(s)
Diff to previous 664080 (colored)
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.

Revision 664080 - (view) (annotate) - [select for diffs]
Modified Fri Jun 6 18:56:13 2008 UTC (17 months, 3 weeks ago) by wrowe
File length: 27478 byte(s)
Diff to previous 646453 (colored)
No.

_NONSTD refers to type fn (arg, arg, ...) incomplete declarations

Revision 646453 - (view) (annotate) - [select for diffs]
Modified Wed Apr 9 18:01:53 2008 UTC (19 months, 2 weeks ago) by chrisd
File length: 27534 byte(s)
Diff to previous 553563 (colored)
Handle integer configuration directive parameters with a dedicated
function, akin to dbd_param_flag().  Only needed when APR_HAS_THREADS.

Revision 553563 - (view) (annotate) - [select for diffs]
Modified Thu Jul 5 17:10:43 2007 UTC (2 years, 4 months ago) by fuankg
File length: 27768 byte(s)
Diff to previous 553031 (colored)
reverted r553031 since it breaks Linux/Unix platform builds.

Revision 553031 - (view) (annotate) - [select for diffs]
Modified Wed Jul 4 01:03:48 2007 UTC (2 years, 4 months ago) by fuankg
File length: 27673 byte(s)
Diff to previous 539687 (colored)
changed error message to use APU_DBD_DRIVER_FMT for correct driver name;
removed platform ifdefs.

Revision 539687 - (view) (annotate) - [select for diffs]
Modified Sat May 19 05:01:44 2007 UTC (2 years, 6 months ago) by chrisd
File length: 27768 byte(s)
Diff to previous 521230 (colored)
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

Revision 521230 - (view) (annotate) - [select for diffs]
Modified Thu Mar 22 11:58:20 2007 UTC (2 years, 8 months ago) by fuankg
File length: 27630 byte(s)
Diff to previous 503931 (colored)
added proper error message for NetWare.

Revision 503931 - (view) (annotate) - [select for diffs]
Modified Tue Feb 6 00:25:15 2007 UTC (2 years, 9 months ago) by chrisd
File length: 27529 byte(s)
Diff to previous 496831 (colored)
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.

Revision 496831 - (view) (annotate) - [select for diffs]
Modified Tue Jan 16 19:36:26 2007 UTC (2 years, 10 months ago) by chrisd
File length: 23593 byte(s)
Diff to previous 492394 (colored)
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.

Revision 492394 - (view) (annotate) - [select for diffs]
Modified Thu Jan 4 03:12:48 2007 UTC (2 years, 10 months ago) by chrisd
File length: 23591 byte(s)
Diff to previous 491884 (colored)
Fix several strict compiler warnings for both the threaded
and non-threaded versions.

Revision 491884 - (view) (annotate) - [select for diffs]
Modified Tue Jan 2 18:26:00 2007 UTC (2 years, 10 months ago) by chrisd
File length: 23172 byte(s)
Diff to previous 491729 (colored)
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.

Revision 491729 - (view) (annotate) - [select for diffs]
Modified Tue Jan 2 01:19:21 2007 UTC (2 years, 10 months ago) by chrisd
File length: 23854 byte(s)
Diff to previous 485311 (colored)
Rename functions and variables for consistency, and move some functions
around for readability, prior to forthcoming functional changes.

Revision 485311 - (view) (annotate) - [select for diffs]
Modified Sun Dec 10 23:38:05 2006 UTC (2 years, 11 months ago) by niq
File length: 23222 byte(s)
Diff to previous 483630 (colored)
Stop mod_dbd emitting bogus error messages when it's loaded
but not configured.

Revision 483630 - (view) (annotate) - [select for diffs]
Modified Thu Dec 7 19:47:18 2006 UTC (2 years, 11 months ago) by rpluem
File length: 22469 byte(s)
Diff to previous 481509 (colored)
* Add the missing include of http_request.h and thus fix a compiler warning.

Revision 481509 - (view) (annotate) - [select for diffs]
Modified Sat Dec 2 06:25:07 2006 UTC (2 years, 11 months ago) by chrisd
File length: 22443 byte(s)
Diff to previous 466641 (colored)
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.

Revision 466641 - (view) (annotate) - [select for diffs]
Modified Sun Oct 22 13:31:25 2006 UTC (3 years, 1 month ago) by minfrin
File length: 22095 byte(s)
Diff to previous 432562 (colored)
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.

Revision 432562 - (view) (annotate) - [select for diffs]
Modified Fri Aug 18 12:38:28 2006 UTC (3 years, 3 months ago) by niq
File length: 22383 byte(s)
Diff to previous 432560 (colored)
Log a message if we try to prepare a statement not attached to a hostname.
This fix supplements r432560 (don't crash).

Revision 432560 - (view) (annotate) - [select for diffs]
Modified Fri Aug 18 12:16:13 2006 UTC (3 years, 3 months ago) by niq
File length: 22234 byte(s)
Diff to previous 424798 (colored)
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.

Revision 424798 - (view) (annotate) - [select for diffs]
Modified Sun Jul 23 20:22:57 2006 UTC (3 years, 4 months ago) by niq
File length: 22060 byte(s)
Diff to previous 420983 (colored)
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.

Revision 420983 - (view) (annotate) - [select for diffs]
Modified Tue Jul 11 20:33:53 2006 UTC (3 years, 4 months ago) by fielding
File length: 21080 byte(s)
Diff to previous 413015 (colored)
update license header text

Revision 413015 - (view) (annotate) - [select for diffs]
Modified Fri Jun 9 11:15:41 2006 UTC (3 years, 5 months ago) by niq
File length: 20930 byte(s)
Diff to previous 396310 (colored)
PR#39761
Make the error message more meaningful when DBD is configured
without a driver.

Revision 396310 - (view) (annotate) - [select for diffs]
Modified Sun Apr 23 19:59:23 2006 UTC (3 years, 7 months ago) by niq
File length: 20731 byte(s)
Diff to previous 386321 (colored)
PR#39386: Fix merge-config to support prepared statements (Brian J. France)

Revision 386321 - (view) (annotate) - [select for diffs]
Modified Thu Mar 16 12:47:53 2006 UTC (3 years, 8 months ago) by niq
File length: 20653 byte(s)
Diff to previous 354400 (colored)
Log a better error message if initialisation fails on prepared statements.

Revision 354400 - (view) (annotate) - [select for diffs]
Modified Tue Dec 6 10:54:57 2005 UTC (3 years, 11 months ago) by niq
File length: 20481 byte(s)
Diff to previous 349768 (colored)
Improve defaults from 'test' values (and get meaningful errors on
startup if database is down); trivial tidyups.

Revision 349768 - (view) (annotate) - [select for diffs]
Modified Tue Nov 29 17:27:02 2005 UTC (3 years, 11 months ago) by colm
File length: 20371 byte(s)
Diff to previous 349752 (colored)
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.

Revision 349752 - (view) (annotate) - [select for diffs]
Modified Tue Nov 29 16:37:49 2005 UTC (3 years, 11 months ago) by colm
File length: 20315 byte(s)
Diff to previous 348026 (colored)
Give DBD a set of _DECLARE macros consistent with other modules, so that
_EXPORT and _STATIC and be turned on/off more easily.

Revision 348026 - (view) (annotate) - [select for diffs]
Modified Mon Nov 21 23:41:44 2005 UTC (4 years ago) by niq
File length: 20307 byte(s)
Diff to previous 348008 (colored)
PR#37553
Redesign of pools handling in mod_dbd
Submitted: Chris Darroch, Reviewed: Nick Kew

Revision 348008 - (view) (annotate) - [select for diffs]
Modified Mon Nov 21 23:01:49 2005 UTC (4 years ago) by niq
File length: 16811 byte(s)
Diff to previous 345128 (colored)
Wrap exported functions in AP_DECLARE

Revision 345128 - (view) (annotate) - [select for diffs]
Modified Wed Nov 16 21:20:33 2005 UTC (4 years ago) by niq
File length: 16679 byte(s)
Diff to previous 345040 (colored)
Add defaults and comments for better robustness against misuse
(based on comments from Chris Darroch).

Revision 345040 - (view) (annotate) - [select for diffs]
Modified Wed Nov 16 15:30:32 2005 UTC (4 years ago) by niq
File length: 16599 byte(s)
Diff to previous 344140 (colored)
Fix (Chris Darroch) to register cleanup for persistent connection
in the no-threads case.

Revision 344140 - (view) (annotate) - [select for diffs]
Modified Mon Nov 14 15:06:07 2005 UTC (4 years ago) by niq
File length: 16466 byte(s)
Diff to previous 332142 (colored)
Fix driver-dependent potential memor-use bug in preparing statements

Revision 332142 - (view) (annotate) - [select for diffs]
Modified Wed Nov 9 21:12:45 2005 UTC (4 years ago) by niq
File length: 16452 byte(s)
Diff to previous 307439 (colored)
Work if check_conn is NOTIMPL in a driver

Revision 307439 - (view) (annotate) - [select for diffs]
Modified Sun Oct 9 14:19:22 2005 UTC (4 years, 1 month ago) by niq
File length: 16359 byte(s)
Diff to previous 292769 (colored)
Support dbd connections tied to the conn_rec.

Revision 292769 - (view) (annotate) - [select for diffs]
Modified Fri Sep 30 15:26:45 2005 UTC (4 years, 1 month ago) by niq
File length: 14776 byte(s)
Diff to previous 291100 (colored)
Fix pool in dbd_construct, and set sensible config defaults
(based on feedback from Brian France)

Revision 291100 - (view) (annotate) - [select for diffs]
Modified Fri Sep 23 10:56:07 2005 UTC (4 years, 2 months ago) by niq
File length: 14431 byte(s)
Diff to previous 290711 (colored)
Add note on DBD APIs to Module Developer Changes in new_features.
Update cast in mod_dbd.c as suggested by jorton.

Revision 290711 - (view) (annotate) - [select for diffs]
Modified Wed Sep 21 14:29:57 2005 UTC (4 years, 2 months ago) by niq
File length: 14430 byte(s)
Diff to previous 290672 (colored)
Eliminate possible compiler warnings pointed out by Joe.

Revision 290672 - (view) (annotate) - [select for diffs]
Modified Wed Sep 21 10:04:00 2005 UTC (4 years, 2 months ago) by niq
File length: 14403 byte(s)
Copied from: httpd/httpd/trunk/modules/experimental/mod_dbd.c revision 290663
Diff to previous 234017 (colored)
Move mod_dbd from /experimental/ to /database/

Revision 234017 - (view) (annotate) - [select for diffs]
Modified Sat Aug 20 10:36:50 2005 UTC (4 years, 3 months ago) by niq
Original Path: httpd/httpd/trunk/modules/experimental/mod_dbd.c
File length: 14403 byte(s)
Diff to previous 231464 (colored)
mod_dbd:
  (1) Export new ap_dbd_prepare function
  (2) Put all dbd_open() stuff in one place
  (3) Remove the servertoken

Revision 231464 - (view) (annotate) - [select for diffs]
Modified Thu Aug 11 14:12:13 2005 UTC (4 years, 3 months ago) by niq
Original Path: httpd/httpd/trunk/modules/experimental/mod_dbd.c
File length: 14709 byte(s)
Diff to previous 231275 (colored)
Add const-ness to apr_dbd_driver_t

Revision 231275 - (view) (annotate) - [select for diffs]
Modified Wed Aug 10 16:05:17 2005 UTC (4 years, 3 months ago) by niq
Original Path: httpd/httpd/trunk/modules/experimental/mod_dbd.c
File length: 14703 byte(s)
Diff to previous 170766 (colored)
Update mod_dbd to API that hides apr_dbd_driver_t struct.

Revision 170766 - (view) (annotate) - [select for diffs]
Modified Wed May 18 15:41:25 2005 UTC (4 years, 6 months ago) by nd
Original Path: httpd/httpd/trunk/modules/experimental/mod_dbd.c
File length: 14721 byte(s)
Diff to previous 170729 (colored)
svn:eol-style native

Revision 170729 - (view) (annotate) - [select for diffs]
Added Wed May 18 09:19:34 2005 UTC (4 years, 6 months ago) by niq
Original Path: httpd/httpd/trunk/modules/experimental/mod_dbd.c
File length: 14721 byte(s)
Committing mod_dbd as new.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2