summaryrefslogtreecommitdiffabout
path: root/src/dbrw.h
authorSergey Poznyakoff <gray@gnu.org>2019-02-13 12:42:26 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2019-02-13 12:49:44 (GMT)
commit49ab7b5fa7843a77605b91adf8a3689794fc091a (patch) (side-by-side diff)
treea66112caaaf9fe883ce449c788df1a8480594db9 /src/dbrw.h
parent7eb61c964c74af1bafb948584c0404208c9467b8 (diff)
downloadvmod-dbrw-49ab7b5fa7843a77605b91adf8a3689794fc091a.tar.gz
vmod-dbrw-49ab7b5fa7843a77605b91adf8a3689794fc091a.tar.bz2
Implement two new flags and a special req.http header to indicate errors
* NEWS: Document changes. * doc/vmod-dbrw.3: Likewise. * doc/vmod-dbrw.texi: Likewise. * configure.ac: Version 2.4.90 * src/dbrw.h (dbrw_config): New member: match_type * src/vmod_dbrw.c (parse_flags): Handle "eq" and "regex" flags. (findmatch): Handle the "eq" flag. (do_rewrite): Return error code. (vmod_rewrite): Set the X-VMOD-DBRW-Error header on errors. * tests/atlocal.in (at_vcl_backend): Special handling for X-VMOD-DBRW-Error. * tests/initdb.at: Test the 'eq' flag. * tests/rewrite07.at: New testcase. * tests/Makefile.am: Add new testcase. * tests/testsuite.at: Likewise.
Diffstat (limited to 'src/dbrw.h') (more/less context) (ignore whitespace changes)
-rw-r--r--src/dbrw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dbrw.h b/src/dbrw.h
index bd0aa2a..9a8adf6 100644
--- a/src/dbrw.h
+++ b/src/dbrw.h
@@ -71,6 +71,7 @@ struct dbrw_config {
char *query;
int qdisp;
int regflags;
+ int match_type;
char status[HTTP_STATUS_LEN+1];
int idle_timeout;
VTAILQ_ENTRY(dbrw_config) list;

Return to:

Send suggestions and report system problems to the System administrator.