Skip to content

Commit bdcebf6

Browse files
committed
hash: Assert that we never rush from private_oh
1 parent 556fba6 commit bdcebf6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/varnishd/cache/cache_hash.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,8 @@ hsh_rush1(const struct worker *wrk, struct objcore *oc, struct rush *r)
759759
}
760760

761761
oc->refcnt += i;
762+
if (i > 0)
763+
assert(oh != private_oh);
762764
}
763765

764766
/*---------------------------------------------------------------------

0 commit comments

Comments
 (0)