[6.0] 35a99eb67 One more time for VTEST...

Reza Naghibi reza at naghibi.com
Wed Aug 19 13:17:07 UTC 2020


commit 35a99eb67319055c8c19ff4261c0aa56b2b759d7
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Jun 9 20:47:18 2020 +0000

    One more time for VTEST...

diff --git a/lib/libvmod_directors/shard_dir.c b/lib/libvmod_directors/shard_dir.c
index a07bb1e3f..b978c8780 100644
--- a/lib/libvmod_directors/shard_dir.c
+++ b/lib/libvmod_directors/shard_dir.c
@@ -352,7 +352,6 @@ sharddir_pick_be_locked(VRT_CTX, const struct sharddir *shardd, uint32_t key,
 	validate_alt(ctx, shardd, &alt);
 
 	state->idx = shard_lookup(shardd, key);
-	assert(state->idx >= 0);
 
 	SHDBG(SHDBG_LOOKUP, shardd, "lookup key %x idx %d host %u",
 	    key, state->idx, shardd->hashcircle[state->idx].host);


More information about the varnish-commit mailing list