[master] eb4cb91 Revert "Fix a bug discovered by inspection:"

Tollef Fog Heen tfheen at varnish-cache.org
Tue Apr 9 13:49:06 CEST 2013


commit eb4cb91e7ddbaecb4fcddf45f374e2a0a9e68935
Author: Tollef Fog Heen <tfheen at varnish-software.com>
Date:   Tue Apr 9 13:23:02 2013 +0200

    Revert "Fix a bug discovered by inspection:"
    
    13:19 < phk> you're right, that's bass ackwards
    
    This reverts commit 4c47a36e9f8b7b2dfe7eff60c3fda418dc6effca.

diff --git a/bin/varnishd/storage/stevedore.c b/bin/varnishd/storage/stevedore.c
index 0b84a46..fa0fdcf 100644
--- a/bin/varnishd/storage/stevedore.c
+++ b/bin/varnishd/storage/stevedore.c
@@ -180,7 +180,7 @@ stv_alloc(struct stevedore *stv, size_t size)
 		if (size <= cache_param->fetch_chunksize)
 			break;
 
-		size <<= 1;
+		size >>= 1;
 	}
 	if (st != NULL)
 		CHECK_OBJ_NOTNULL(st, STORAGE_MAGIC);
diff --git a/bin/varnishtest/tests/r01175.vtc b/bin/varnishtest/tests/r01175.vtc
index f5c1c8e..a286de6 100644
--- a/bin/varnishtest/tests/r01175.vtc
+++ b/bin/varnishtest/tests/r01175.vtc
@@ -17,4 +17,4 @@ client c1 {
 	expect resp.status == 503
 } -run
 
-varnish v1 -expect SMA.test.c_fail < 50
+varnish v1 -expect SMA.test.c_fail < 5



More information about the varnish-commit mailing list