Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Tested-by: Stefan Priebe <s.priebe@profihost.ag>
dout(10) << " disconnected watch " << w << " by " << entity << " session " << session
<< ", expires " << expire << dendl;
obc->watchers.erase(witer++);
+ pg->put_object_context(obc);
session->put();
}
if (witer == obc->watchers.end())
++witer;
}
watch_lock.Unlock();
- pg->put_object_context(obc);
- /* now drop a reference to that obc */
pg->unlock();
}
}