summaryrefslogtreecommitdiffstats
path: root/debian/patches/0007-lib-cache-bump-CACHE_VERSION.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 14:54:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 14:54:37 +0000
commit5c6b8a58ae73e0da3929cffe9081a701578067fd (patch)
tree16ec161160f4a991fba35df60e8fd91fd990f878 /debian/patches/0007-lib-cache-bump-CACHE_VERSION.patch
parentAdding debian version 5.6.0-1. (diff)
downloadknot-resolver-5c6b8a58ae73e0da3929cffe9081a701578067fd.tar.xz
knot-resolver-5c6b8a58ae73e0da3929cffe9081a701578067fd.zip
Adding debian version 5.6.0-1+deb12u1.debian/5.6.0-1+deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/patches/0007-lib-cache-bump-CACHE_VERSION.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/0007-lib-cache-bump-CACHE_VERSION.patch b/debian/patches/0007-lib-cache-bump-CACHE_VERSION.patch
new file mode 100644
index 0000000..36c8aa4
--- /dev/null
+++ b/debian/patches/0007-lib-cache-bump-CACHE_VERSION.patch
@@ -0,0 +1,25 @@
+From: =?utf-8?b?VmxhZGltw61yIMSMdW7DoXQ=?= <vladimir.cunat@nic.cz>
+Date: Fri, 23 Feb 2024 10:07:35 +0100
+Subject: lib/cache: bump CACHE_VERSION
+
+Ideally we would've done that at once with increasing NSEC3 strictness,
+i.e. in 5.7.1 + 6.0.6, as otherwise we could run into some recoverable
+assertions until the records got removed or expired.
+We at least do the bump now.
+---
+ lib/cache/api.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/cache/api.c b/lib/cache/api.c
+index bb627ea..f71a8d0 100644
+--- a/lib/cache/api.c
++++ b/lib/cache/api.c
+@@ -40,7 +40,7 @@
+
+
+ /** Cache version */
+-static const uint16_t CACHE_VERSION = 6;
++static const uint16_t CACHE_VERSION = 7;
+ /** Key size */
+ #define KEY_HSIZE (sizeof(uint8_t) + sizeof(uint16_t))
+ #define KEY_SIZE (KEY_HSIZE + KNOT_DNAME_MAXLEN)