A cached objectcontext should always have its watchers populated.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
obc->ondisk_write_lock();
obc->obs.exists = true;
obc->obs.oi = pi.recovery_info.oi;
+ populate_obc_watchers(obc);
if (hoid.snap == CEPH_NOSNAP || hoid.snap == CEPH_SNAPDIR) {
obc->ssc->snapset = pi.recovery_info.ss;
{
lock();
dout(10) << "_applied_recovered_object " << *obc << dendl;
- if (is_primary())
- populate_obc_watchers(obc);
put_object_context(obc);
unlock();
delete t;