[master] 7b1188543 Document vsl_buffer and vsl_reclen dependencies

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Mon Mar 2 14:09:08 UTC 2020


commit 7b1188543730a1e654241f21c71fbee79e8c7897
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Mon Mar 2 11:31:05 2020 +0100

    Document vsl_buffer and vsl_reclen dependencies
    
    Now that PARAM() is a vararg macro, we can afford having the dynamic
    bounds reasons only for relevant parameters without bloating the rest
    of the table.

diff --git a/include/tbl/params.h b/include/tbl/params.h
index 63492f9f3..4acf14910 100644
--- a/include/tbl/params.h
+++ b/include/tbl/params.h
@@ -1431,8 +1431,8 @@ PARAM(
 	"and workspace_backend will have to be adjusted by the same amount.\n\n"
 	"Setting this too high costs memory, setting it too low will cause "
 	"more VSL flushes and likely increase lock-contention on the VSL "
-	"mutex.\n\n"
-	"The minimum tracks the vsl_reclen parameter + 12 bytes."
+	"mutex.",
+	/* dyn_min_reason */	"vsl_reclen + 12 bytes"
 )
 
 #if 0
@@ -1463,8 +1463,9 @@ PARAM(
 	/* units */	"bytes",
 	/* flags */	0,
 	/* s-text */
-	"Maximum number of bytes in SHM log record.\n\n"
-	"The maximum tracks the vsl_buffer parameter - 12 bytes."
+	"Maximum number of bytes in SHM log record.",
+	/* dyn_min_reason */	NULL,
+	/* dyn_max_reason */	"vsl_buffer - 12 bytes"
 )
 
 PARAM(


More information about the varnish-commit mailing list