[master] 01d7080 Use the new "allocate all but" debug.workspace_allocate() feature
Poul-Henning Kamp
phk at FreeBSD.org
Thu Mar 23 20:02:06 CET 2017
commit 01d7080bf421c1f3cd57e7df8aca0d8ccc1ec588
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Mar 23 17:45:19 2017 +0000
Use the new "allocate all but" debug.workspace_allocate() feature
diff --git a/bin/varnishtest/tests/c00071.vtc b/bin/varnishtest/tests/c00071.vtc
index 77e39d3..befa08d 100644
--- a/bin/varnishtest/tests/c00071.vtc
+++ b/bin/varnishtest/tests/c00071.vtc
@@ -14,7 +14,7 @@ server s1 {
varnish v1 -vcl+backend {
import debug;
sub vcl_deliver {
- debug.workspace_allocate(client, debug.workspace_free(client) - 192);
+ debug.workspace_allocate(client, -192);
if (req.url ~ "/bar") {
set resp.http.x-foo = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
diff --git a/bin/varnishtest/tests/r01834.vtc b/bin/varnishtest/tests/r01834.vtc
index 1937da1..e5e1dbc 100644
--- a/bin/varnishtest/tests/r01834.vtc
+++ b/bin/varnishtest/tests/r01834.vtc
@@ -18,7 +18,7 @@ varnish v1 -vcl+backend {
}
sub vcl_backend_fetch {
- debug.workspace_allocate(backend, debug.workspace_free(backend) - std.integer(bereq.http.WS, 256));
+ debug.workspace_allocate(backend, -1 * std.integer(bereq.http.WS, 256));
}
} -start
More information about the varnish-commit
mailing list