]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: only populate_obc_watchers if active 3538/head
authorSamuel Just <sjust@redhat.com>
Mon, 1 Dec 2014 22:52:11 +0000 (14:52 -0800)
committerSamuel Just <sjust@redhat.com>
Fri, 30 Jan 2015 19:45:37 +0000 (11:45 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/ReplicatedPG.cc

index afb53d60cf6452ad72734ac6093a74202c4c0cdd..f63d1de93d88165bb8d593635b0719ff28b99fe3 100644 (file)
@@ -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) {