[master] cf955a495 add a lookup enum never to escape HSH_Lookup

Nils Goroll nils.goroll at uplex.de
Mon Dec 3 22:08:12 UTC 2018


commit cf955a495f870d77fdb2d945b5379eaf187af894
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Dec 3 22:49:51 2018 +0100

    add a lookup enum never to escape HSH_Lookup
    
    This is caught by
    
            assert(lr == HSH_HIT || lr == HSH_GRACE);
    
    in cnt_lookup()

diff --git a/bin/varnishd/hash/hash_slinger.h b/bin/varnishd/hash/hash_slinger.h
index 9434ce874..6c17b8374 100644
--- a/bin/varnishd/hash/hash_slinger.h
+++ b/bin/varnishd/hash/hash_slinger.h
@@ -50,6 +50,7 @@ struct hash_slinger {
 };
 
 enum lookup_e {
+	HSH_CONTINUE,
 	HSH_MISS,
 	HSH_BUSY,
 	HSH_HIT,


More information about the varnish-commit mailing list