]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
OSD: add debugging to start_split and complete_split
authorSamuel Just <sam.just@inktank.com>
Sat, 9 Mar 2013 01:15:14 +0000 (17:15 -0800)
committerSamuel Just <sam.just@inktank.com>
Thu, 14 Mar 2013 01:48:24 +0000 (18:48 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/OSD.cc

index 3554ffb993ddc4a9a1a383f58aa0fe44f82f2987..6258c87193c5cd80b7132ee9728c2a9711515f7d 100644 (file)
 
 #define dout_subsys ceph_subsys_osd
 #undef dout_prefix
-#define dout_prefix _prefix(*_dout, whoami, get_osdmap())
+#define dout_prefix _prefix(_dout, whoami, get_osdmap())
 
 static ostream& _prefix(std::ostream* _dout, int whoami, OSDMapRef osdmap) {
   return *_dout << "osd." << whoami << " "
@@ -188,6 +188,7 @@ void OSDService::_start_split(const set<pg_t> &pgs)
   for (set<pg_t>::const_iterator i = pgs.begin();
        i != pgs.end();
        ++i) {
+    dout(10) << __func__ << ": Starting split on pg " << *i << dendl;
     assert(!in_progress_splits.count(*i));
     in_progress_splits.insert(*i);
   }
@@ -225,6 +226,7 @@ void OSDService::complete_split(const set<pg_t> &pgs)
   for (set<pg_t>::const_iterator i = pgs.begin();
        i != pgs.end();
        ++i) {
+    dout(10) << __func__ << ": Completing split on pg " << *i << dendl;
     assert(in_progress_splits.count(*i));
     in_progress_splits.erase(*i);
   }