Skip to content
This repository was archived by the owner on Feb 16, 2026. It is now read-only.

Commit bdcebf6

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

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)