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
{
..
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