diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-12-10 13:59:53 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-12-10 14:00:55 +0200 |
commit | 841a9f6fa1e3dfa1323be6212056ecd28d21b696 (patch) | |
tree | f4ca4d8ed1451d0e4a680cfad7ac1230287ba943 | |
parent | 691d208edcf53d48e2401340f1aec2adae8661c8 (diff) | |
download | vmod-dbrw-841a9f6fa1e3dfa1323be6212056ecd28d21b696.tar.gz vmod-dbrw-841a9f6fa1e3dfa1323be6212056ecd28d21b696.tar.bz2 |
Version 2.4; Support for varnish 6.0.2release-2.4
-rw-r--r-- | NEWS | 7 | ||||
m--------- | acvmod | 0 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | doc/vmod-dbrw.3 | 2 | ||||
-rw-r--r-- | src/dbrw.h | 14 |
5 files changed, 21 insertions, 8 deletions
@@ -1,11 +1,16 @@ | |||
1 | vmod-dbrw -- history of user-visible changes. 2018-12-08 | 1 | vmod-dbrw -- history of user-visible changes. 2018-12-10 |
2 | See the end of file for copying conditions. | 2 | See the end of file for copying conditions. |
3 | 3 | ||
4 | Please send vmod-dbrw bug reports to <gray@gnu.org> | 4 | Please send vmod-dbrw bug reports to <gray@gnu.org> |
5 | 5 | ||
6 | Version 2.4, 2018-12-10 | ||
7 | |||
8 | * Support for Varnish version 6.0.2 | ||
9 | |||
10 | |||
6 | Version 2.3, 2018-12-08 | 11 | Version 2.3, 2018-12-08 |
7 | 12 | ||
8 | * SQL idle timeout | 13 | * SQL idle timeout |
9 | 14 | ||
10 | For MySQL backend, the default connection idle timeout is set equal to | 15 | For MySQL backend, the default connection idle timeout is set equal to |
11 | the value of the MySQL variable 'wait_timeout'. For Postgres, default | 16 | the value of the MySQL variable 'wait_timeout'. For Postgres, default |
diff --git a/acvmod b/acvmod | |||
Subproject 5f6dce2f7dd35a154333bb42d134a018b981f81 | Subproject 5b214e3d72f9e261a37cf31deb41e7f8a61a181 | ||
diff --git a/configure.ac b/configure.ac index 420041e..62c3afe 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -11,13 +11,13 @@ | |||
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | # GNU General Public License for more details. | 12 | # GNU General Public License for more details. |
13 | # | 13 | # |
14 | # You should have received a copy of the GNU General Public License | 14 | # You should have received a copy of the GNU General Public License |
15 | # along with vmod-dbrw. If not, see <http://www.gnu.org/licenses/>. | 15 | # along with vmod-dbrw. If not, see <http://www.gnu.org/licenses/>. |
16 | AC_PREREQ(2.69) | 16 | AC_PREREQ(2.69) |
17 | AC_INIT([vmod-dbrw], 2.3, [gray@gnu.org]) | 17 | AC_INIT([vmod-dbrw], 2.4, [gray@gnu.org]) |
18 | AC_CONFIG_AUX_DIR([build-aux]) | 18 | AC_CONFIG_AUX_DIR([build-aux]) |
19 | AC_CONFIG_MACRO_DIR([m4]) | 19 | AC_CONFIG_MACRO_DIR([m4]) |
20 | AC_CONFIG_SRCDIR(src/vmod_dbrw.vcc) | 20 | AC_CONFIG_SRCDIR(src/vmod_dbrw.vcc) |
21 | AM_CONFIG_HEADER(config.h) | 21 | AM_CONFIG_HEADER(config.h) |
22 | 22 | ||
23 | AC_SUBST([AC_VMOD_BASENAME],[dbrw]) | 23 | AC_SUBST([AC_VMOD_BASENAME],[dbrw]) |
@@ -40,13 +40,15 @@ AC_PROG_LIBTOOL | |||
40 | AC_PROG_MAKE_SET | 40 | AC_PROG_MAKE_SET |
41 | 41 | ||
42 | # Checks for header files. | 42 | # Checks for header files. |
43 | AC_HEADER_STDC | 43 | AC_HEADER_STDC |
44 | AC_CHECK_HEADERS([sys/stdlib.h]) | 44 | AC_CHECK_HEADERS([sys/stdlib.h]) |
45 | 45 | ||
46 | AM_VARNISHAPI([4.1],[5.2.1]) | 46 | AM_VARNISHAPI([4.1],[6.0.2]) |
47 | AC_DEFINE_UNQUOTED([VARNISHAPI_MAJOR],[$VARNISHAPI_MAJOR], | ||
48 | [Varnish API major version number]) | ||
47 | 49 | ||
48 | ########### | 50 | ########### |
49 | # Check for SQL support | 51 | # Check for SQL support |
50 | build_mysql=probe | 52 | build_mysql=probe |
51 | build_pgsql=probe | 53 | build_pgsql=probe |
52 | 54 | ||
diff --git a/doc/vmod-dbrw.3 b/doc/vmod-dbrw.3 index 21d15e2..f069ce2 100644 --- a/doc/vmod-dbrw.3 +++ b/doc/vmod-dbrw.3 | |||
@@ -295,13 +295,13 @@ sub vcl_synth { | |||
295 | .EE | 295 | .EE |
296 | .\" The MANCGI variable is set by man.cgi script on Ulysses. | 296 | .\" The MANCGI variable is set by man.cgi script on Ulysses. |
297 | .\" The download.inc file contains the default DOWNLOAD section | 297 | .\" The download.inc file contains the default DOWNLOAD section |
298 | .\" for man-based doc pages. | 298 | .\" for man-based doc pages. |
299 | .if "\V[MANCGI]"WEBDOC" \{\ | 299 | .if "\V[MANCGI]"WEBDOC" \{\ |
300 | . ds package vmod-dbrw | 300 | . ds package vmod-dbrw |
301 | . ds version 2.2.91 | 301 | . ds version 2.4 |
302 | . so download.inc | 302 | . so download.inc |
303 | \} | 303 | \} |
304 | .SH "SEE ALSO" | 304 | .SH "SEE ALSO" |
305 | .BR vcl (7), | 305 | .BR vcl (7), |
306 | .BR varnishd (1). | 306 | .BR varnishd (1). |
307 | .PP | 307 | .PP |
@@ -18,16 +18,22 @@ | |||
18 | #include <stdlib.h> | 18 | #include <stdlib.h> |
19 | #include <string.h> | 19 | #include <string.h> |
20 | #include <errno.h> | 20 | #include <errno.h> |
21 | #include <syslog.h> | 21 | #include <syslog.h> |
22 | #include <regex.h> | 22 | #include <regex.h> |
23 | 23 | ||
24 | #include "vcl.h" | 24 | #if VARNISHAPI_MAJOR > 5 |
25 | #include "vrt.h" | 25 | # include "cache/cache.h" |
26 | #include "vcc_if.h" | 26 | # include "vcl.h" |
27 | #include "cache/cache.h" | 27 | # include "vcc_if.h" |
28 | #else | ||
29 | # include "vcl.h" | ||
30 | # include "vrt.h" | ||
31 | # include "vcc_if.h" | ||
32 | # include "cache/cache.h" | ||
33 | #endif | ||
28 | #define WSPTR(s) ((s)->ws) | 34 | #define WSPTR(s) ((s)->ws) |
29 | 35 | ||
30 | struct dbrw_connection; | 36 | struct dbrw_connection; |
31 | 37 | ||
32 | struct dbrw_backend { | 38 | struct dbrw_backend { |
33 | char *name; | 39 | char *name; |