]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: don't log dup osd boot msgs
authorSage Weil <sage@newdream.net>
Fri, 6 Nov 2009 21:36:25 +0000 (13:36 -0800)
committerSage Weil <sage@newdream.net>
Fri, 6 Nov 2009 21:36:25 +0000 (13:36 -0800)
src/mon/OSDMonitor.cc

index fd72d2507b85999dd8fff6ab1fdcb81df705c9a5..a7d94f69411ac613d04d29e63a0bbadd66a7a30a 100644 (file)
@@ -475,9 +475,12 @@ void OSDMonitor::_booted(MOSDBoot *m, bool logit)
 {
   dout(7) << "_booted " << m->get_orig_source_inst() 
          << " w " << m->sb.weight << " from " << m->sb.current_epoch << dendl;
-  stringstream ss;
-  ss << m->get_orig_source_inst() << " boot";
-  mon->get_logclient()->log(LOG_INFO, ss);
+
+  if (logit) {
+    stringstream ss;
+    ss << m->get_orig_source_inst() << " boot";
+    mon->get_logclient()->log(LOG_INFO, ss);
+  }
 
   send_latest(m, m->sb.current_epoch+1);
 }