Age | Commit message (Collapse) | Author | Files |
|
Multiple configurations can be provided, by calling dbrw.config from
branches of a conditional VCL statement. The only requirement is that
exactly one dbrw.config is executed within a single HTTP session. This
allows the user to select rewrite data from various databases depending
on some conditions.
Open SQL connections are stored in a pool and reused as needed. So far
no limit on the number of connections is imposed. This is a TODO.
Connections remain open during the lifetime of the module (i.e. for as
long as varnish is not restarted).
* src/dbrw.h (dbrw_config): New members: param_str, magic and list.
(dbrw_connection): New members: magic, busy, list.
* src/vmod_dbrw.c (dbrw_connection_get)
(dbrw_connection_release): New functions.
(dbrw_event): Install atexit function.
(vmod_config): Keep a pool of configurations.
(dbrw_sethdr) [VARNISHVERSION]: Remove leftover code.
(vmod_rewrite): Rewrite.
* src/vmod_dbrw.vcc (config, rewrite): Mark as PRIV_TASK.
* doc/vmod-dbrw.3: Update docs.
* doc/vmod-dbrw.texi: Update docs.
* configure.ac: Raise version number
|
|
* .gitmodules: New file.
* acvmod: New submodule.
* bootstrap: Update.
* Makefile.am (ACLOCAL_AMFLAGS): Add acvmod
* configure.ac: Use AM_VARNISHAPI instead of inlining
the related code.
Enable silent rules.
Set version number 2.0.90-4.1.0
* src/Makefile.am: Enable silent rules.
* tests/Makefile.am: Likewise.
* tests/atlocal.in (at_vcl_backend): Remove conditional.
* src/vmod_dbrw.c: Use event function.
* src/vmod_dbrw.vcc: Likewise.
* NEWS: Document changes.
|
|
|
|
* NEWS: Update version number.
* configure.ac: Version 1.9.90
(VARNISHVERSION): New variable.
(VARNISH3,VARNISH4): New conditionals.
* src/Makefile.am (nodist_libvmod_dbrw_la_SOURCES): New variable.
(vmodtool,vmodtoolargs,vccfile): Define depending on Varnish version.
(.vcc.vcc3): New rule
(vcc_if.c vcc_if.h): Depend on $(vccfile)
Don't distribute vcc_if.c and vcc_if.h.
* src/vmod_dbrw.c: Provide data types and access macros depending
on the version of Varnish.
|
|
* configure.ac: Check for include/vapi/vsm.h in varnish source
tree.
Change version number to 1.0.91-vcl4
* NEWS: Update version number.
* src/Makefile.am (AM_CPPFLAGS): Add $(VARNISHSRC)/bin/varnishd
(vmodtool,vmodtoolargs): New variables.
(vcc_if.c vcc_if.h): Rewrite the rule.
* src/vmod_dbrw.c: Include pthread.h
Change path to cache.h
(vmod_config,vmod_rewrite): Change declaration.
(expand_backref,findmatch): Change declaration.
Use WS_Copy instead of WS_Dup.
* src/vmod_dbrw.vcc: Rewrite.
|
|
|