<div dir="ltr">Hi,<div><br></div><div>There are people better suited to answer this, but hopefully, they'll yell if I'm saying anything stupid.</div><div><br></div><div>After a cursory glance at the code, I'd say that objcores can be expired either from the inbox or from the binheap and that if you find a "posted" oc on the binheap, it's the inbox turf, so we null the oc to not handle it in the rest of the function.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-- <br></div>Guillaume Quintard<br></div></div></div>
<br><div class="gmail_quote">On Wed, Jul 25, 2018 at 9:49 AM, Prem Kumar <span dir="ltr"><<a href="mailto:n.premkumar.me@gmail.com" target="_blank">n.premkumar.me@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>exp_expire(struct exp_priv *ep, double now)</div><div>{</div><div>..</div><div> if (oc->timer_when > now)</div><div> return (oc->timer_when);</div><div><br></div><div> </div><div> </div><div><br></div><div> if (oc->exp_flags & OC_EF_POSTED) {</div><div> oc->exp_flags |= OC_EF_REMOVE;</div><div> oc = NULL;</div><div> } else {</div><div><br></div><div><br></div><div>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.</div><div><br></div><div><br></div><div>Thanks,</div><div>Prem</div></div>
<br>______________________________<wbr>_________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/<wbr>varnish-misc</a><br>
<br></blockquote></div><br></div>