path: root/NEWS
authorSergey Poznyakoff <>2019-02-13 12:42:26 (GMT)
committer Sergey Poznyakoff <>2019-02-13 12:49:44 (GMT)
commit49ab7b5fa7843a77605b91adf8a3689794fc091a (patch) (side-by-side diff)
treea66112caaaf9fe883ce449c788df1a8480594db9 /NEWS
parent7eb61c964c74af1bafb948584c0404208c9467b8 (diff)
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. * 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/ (at_vcl_backend): Special handling for X-VMOD-DBRW-Error. * tests/ Test the 'eq' flag. * tests/ New testcase. * tests/ Add new testcase. * tests/ Likewise.
Diffstat (limited to 'NEWS') (more/less context) (ignore whitespace changes)
1 files changed, 17 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 0300ec3..516ca69 100644
--- a/NEWS
+++ b/NEWS
@@ -1,8 +1,23 @@
-vmod-dbrw -- history of user-visible changes. 2018-12-10
+vmod-dbrw -- history of user-visible changes. 2019-02-13
See the end of file for copying conditions.
Please send vmod-dbrw bug reports to <>
+Version 2.4.90 (git)
+* req.http.X-VMOD-DBRW-Error
+This header is set to 1 by dbrw.rewrite to indicate that an error
+occurred during the rewrite.
+* New flags: regex and eq
+One of this flags can appear in the fourth column of the returned data
+set. The 'eq' flag instructs dbrw.rewrite to use exact string match,
+instead of regular expressions. The 'regex' flag instructs it to use
+regular expression matching. It is the default.
Version 2.4, 2018-12-10
* Support for Varnish version 6.0.2
@@ -78,7 +93,7 @@ Initial release
Copyright information:
-Copyright (C) 2013-2018 Sergey Poznyakoff
+Copyright (C) 2013-2019 Sergey Poznyakoff
Permission is granted to anyone to make or distribute verbatim copies
of this document as received, in any medium, provided that the

Return to:

Send suggestions and report system problems to the System administrator.