]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: remove debug lines from snapset_context get/put
authorSage Weil <sage@inktank.com>
Thu, 29 Aug 2013 21:27:46 +0000 (14:27 -0700)
committerSage Weil <sage@inktank.com>
Thu, 29 Aug 2013 21:27:46 +0000 (14:27 -0700)
The dout() prefix does get_osdmap(), which requires (and asserts) that we
hold the pg lock, but in some cases we do not, notably
ReplicatedPG::object_context_destructor_callback.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc

index 86d2db51cdb927e3126bbbba1676d812fcdc5d81..f2bf36e82d6acad49ea49bdf6ff79010df7d149a 100644 (file)
@@ -4765,7 +4765,6 @@ SnapSetContext *ReplicatedPG::create_snapset_context(const object_t& oid)
 {
   Mutex::Locker l(snapset_contexts_lock);
   SnapSetContext *ssc = new SnapSetContext(oid);
-  dout(10) << "create_snapset_context " << ssc << " " << ssc->oid << dendl;
   _register_snapset_context(ssc);
   ssc->ref++;
   return ssc;
@@ -4803,8 +4802,6 @@ SnapSetContext *ReplicatedPG::get_snapset_context(const object_t& oid,
     }
   }
   assert(ssc);
-  dout(10) << "get_snapset_context " << ssc->oid << " "
-          << ssc->ref << " -> " << (ssc->ref+1) << dendl;
   ssc->ref++;
   return ssc;
 }
@@ -4812,8 +4809,6 @@ SnapSetContext *ReplicatedPG::get_snapset_context(const object_t& oid,
 void ReplicatedPG::put_snapset_context(SnapSetContext *ssc)
 {
   Mutex::Locker l(snapset_contexts_lock);
-  dout(10) << "put_snapset_context " << ssc->oid << " "
-          << ssc->ref << " -> " << (ssc->ref-1) << dendl;
   --ssc->ref;
   if (ssc->ref == 0) {
     if (ssc->registered)