Need some understanding on expiry thread

Prem Kumar n.premkumar.me at gmail.com
Wed Jul 25 16:49:29 UTC 2018


exp_expire(struct exp_priv *ep, double now)
{
..
 if (oc->timer_when > now)
                return (oc->timer_when);




  if (oc->exp_flags & OC_EF_POSTED) {
                oc->exp_flags |= OC_EF_REMOVE;
                oc = NULL;
        } else {


why do we need to set to oc to NULL after marking it as NULL. How does the
object will be removed from hash and free'd from respective storage backend.


Thanks,
Prem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20180725/7e3a08e5/attachment.html>


More information about the varnish-misc mailing list