From: Samuel Just Date: Mon, 1 Dec 2014 22:52:11 +0000 (-0800) Subject: ReplicatedPG: only populate_obc_watchers if active X-Git-Tag: v0.93~127^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0e3af8d8f9b980ed03d5644c42bfe05100220016;p=ceph.git ReplicatedPG: only populate_obc_watchers if active Signed-off-by: Samuel Just --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index afb53d60cf6..f63d1de93d8 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -7902,7 +7902,8 @@ ObjectContextRef ReplicatedPG::create_object_context(const object_info_t& oi, 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; } @@ -7970,7 +7971,8 @@ ObjectContextRef ReplicatedPG::get_object_context(const hobject_t& soid, 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) {