[master] 7b7572128 stevedore type methods: Change .happy default to true

Nils Goroll nils.goroll at uplex.de
Mon Jan 8 16:51:07 UTC 2024


commit 7b7572128fe9989d9570ceba3dd524e17297d9b5
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Jan 8 17:46:35 2024 +0100

    stevedore type methods: Change .happy default to true
    
    and document the default of the other methods.
    
    Ref #4036

diff --git a/doc/sphinx/reference/vcl_var.rst b/doc/sphinx/reference/vcl_var.rst
index 5d320537f..23c169019 100644
--- a/doc/sphinx/reference/vcl_var.rst
+++ b/doc/sphinx/reference/vcl_var.rst
@@ -1826,6 +1826,8 @@ sess.xid	``VCL >= 4.1``
 storage
 -------
 
+.. XXX all of these are actually defined in generate.py
+
 .. _storage.free_space:
 
 storage.<name>.free_space
@@ -1834,6 +1836,7 @@ storage.<name>.free_space
 
 	Readable from: client, backend
 
+	Default: 0
 
 	Free space available in the named stevedore. Only available for
 	the malloc stevedore.
@@ -1847,6 +1850,7 @@ storage.<name>.happy
 
 	Readable from: client, backend
 
+	Default: true
 
 	Health status for the named stevedore. Not available in any of the
 	current stevedores.
@@ -1860,6 +1864,7 @@ storage.<name>.used_space
 
 	Readable from: client, backend
 
+	Default: 0
 
 	Used space in the named stevedore. Only available for the malloc
 	stevedore.
diff --git a/lib/libvcc/generate.py b/lib/libvcc/generate.py
index fe5bcc9b4..0660f2283 100755
--- a/lib/libvcc/generate.py
+++ b/lib/libvcc/generate.py
@@ -295,7 +295,7 @@ stv_variables = (
     Used space in the named stevedore. Only available for the malloc
     stevedore.
     """),
-    ('happy', 'BOOL', "0", 'storage.<name>.happy', """
+    ('happy', 'BOOL', "1", 'storage.<name>.happy', """
     Health status for the named stevedore. Not available in any of the
     current stevedores.
     """),


More information about the varnish-commit mailing list