Signed-off-by: Samuel Just <sjust@redhat.com>
if (ssc)
register_snapset_context(ssc);
dout(10) << "create_object_context " << (void*)obc.get() << " " << oi.soid << " " << dendl;
- populate_obc_watchers(obc);
+ if (is_active())
+ populate_obc_watchers(obc);
return obc;
}
soid, true,
soid.has_snapset() ? attrs : 0);
- populate_obc_watchers(obc);
+ if (is_active())
+ populate_obc_watchers(obc);
if (pool.info.require_rollback()) {
if (attrs) {