[master] 12a27e8d2 vsl: Bump on-disk header of VSL dumps
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Mon Mar 6 14:27:06 UTC 2023
commit 12a27e8d21fa7eacf7b6a754eed72f92a94f31e3
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Mon Mar 6 10:15:45 2023 +0100
vsl: Bump on-disk header of VSL dumps
This prevents VUTs from attempting to read incompatible formats, while
preserving the current header size, aligning it with the SHMLOG header
at the format number 2.
diff --git a/lib/libvarnishapi/vsl_api.h b/lib/libvarnishapi/vsl_api.h
index b374be38c..848a02b25 100644
--- a/lib/libvarnishapi/vsl_api.h
+++ b/lib/libvarnishapi/vsl_api.h
@@ -31,7 +31,9 @@
*
*/
-#define VSL_FILE_ID "VSL"
+static const char vsl_file_id[] = {'V', 'S', 'L', '2'};
+
+#define VSL_FILE_ID (vsl_file_id)
/*lint -esym(534, vsl_diag) */
int vsl_diag(struct VSL_data *vsl, const char *fmt, ...) v_printflike_(2, 3);
More information about the varnish-commit
mailing list