]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: osdmon cleanup
authorSage Weil <sage@newdream.net>
Tue, 9 Dec 2008 22:57:01 +0000 (14:57 -0800)
committerSage Weil <sage@newdream.net>
Wed, 10 Dec 2008 00:00:58 +0000 (16:00 -0800)
src/mon/OSDMonitor.cc

index 617098dca0778857f54ecdb3766586da367d9a65..5771c4f71757a6f7aa5e489a509cdabbf63826e7 100644 (file)
@@ -190,16 +190,6 @@ void OSDMonitor::create_pending()
 }
 
 
-/*
-struct RetryClearMkpg : public Context {
-  OSDMonitor *osdmon;
-  RetryClearMkpg(OSDMonitor *o) : osdmon(o) {}
-  void finish(int r) {
-    osdmon->clear_mkpg_flag();
-  }
-};
-*/
-
 void OSDMonitor::encode_pending(bufferlist &bl)
 {
   dout(10) << "encode_pending e " << pending_inc.epoch
@@ -213,7 +203,6 @@ void OSDMonitor::encode_pending(bufferlist &bl)
        i != pending_inc.new_down.end();
        i++) {
     dout(2) << " osd" << i->first << " DOWN clean=" << (int)i->second << dendl;
-    derr(0) << " osd" << i->first << " DOWN clean=" << (int)i->second << dendl;
     // no: this screws up map delivery on shutdown
     //mon->messenger->mark_down(osdmap.get_addr(i->first));
   }
@@ -221,20 +210,16 @@ void OSDMonitor::encode_pending(bufferlist &bl)
        i != pending_inc.new_up.end(); 
        i++) { 
     dout(2) << " osd" << i->first << " UP " << i->second << dendl;
-    derr(0) << " osd" << i->first << " UP " << i->second << dendl;
   }
   for (map<int32_t,uint32_t>::iterator i = pending_inc.new_weight.begin();
        i != pending_inc.new_weight.end();
        i++) {
     if (i->second == CEPH_OSD_OUT) {
       dout(2) << " osd" << i->first << " OUT" << dendl;
-      derr(0) << " osd" << i->first << " OUT" << dendl;
     } else if (i->second == CEPH_OSD_IN) {
       dout(2) << " osd" << i->first << " IN" << dendl;
-      derr(0) << " osd" << i->first << " IN" << dendl;
     } else {
       dout(2) << " osd" << i->first << " WEIGHT " << hex << i->second << dec << dendl;
-      derr(0) << " osd" << i->first << " WEIGHT " << hex << i->second << dec << dendl;
     }
   }