From 8ffff6d556c55157012a0aba01cb3150b31202a1 Mon Sep 17 00:00:00 2001 From: sageweil Date: Tue, 17 Jul 2007 04:55:46 +0000 Subject: [PATCH] reorder osd up/down in/out output git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1511 29311d96-e01e-0410-9327-a35deaab8ce9 --- branches/sage/cephmds2/mon/OSDMonitor.cc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/branches/sage/cephmds2/mon/OSDMonitor.cc b/branches/sage/cephmds2/mon/OSDMonitor.cc index 11b2f59d1771d..a15888aa1779d 100644 --- a/branches/sage/cephmds2/mon/OSDMonitor.cc +++ b/branches/sage/cephmds2/mon/OSDMonitor.cc @@ -289,12 +289,6 @@ void OSDMonitor::encode_pending(bufferlist &bl) pending_inc.mon_epoch = mon->mon_epoch; // tell me about it - for (map::iterator i = pending_inc.new_up.begin(); - i != pending_inc.new_up.end(); - i++) { - dout(0) << " osd" << i->first << " UP " << i->second << endl; - derr(0) << " osd" << i->first << " UP " << i->second << endl; - } for (map::iterator i = pending_inc.new_down.begin(); i != pending_inc.new_down.end(); i++) { @@ -302,11 +296,11 @@ void OSDMonitor::encode_pending(bufferlist &bl) derr(0) << " osd" << i->first << " DOWN " << i->second << endl; mon->messenger->mark_down(i->second.addr); } - for (list::iterator i = pending_inc.new_in.begin(); - i != pending_inc.new_in.end(); - i++) { - dout(0) << " osd" << *i << " IN" << endl; - derr(0) << " osd" << *i << " IN" << endl; + for (map::iterator i = pending_inc.new_up.begin(); + i != pending_inc.new_up.end(); + i++) { + dout(0) << " osd" << i->first << " UP " << i->second << endl; + derr(0) << " osd" << i->first << " UP " << i->second << endl; } for (list::iterator i = pending_inc.new_out.begin(); i != pending_inc.new_out.end(); @@ -314,6 +308,12 @@ void OSDMonitor::encode_pending(bufferlist &bl) dout(0) << " osd" << *i << " OUT" << endl; derr(0) << " osd" << *i << " OUT" << endl; } + for (list::iterator i = pending_inc.new_in.begin(); + i != pending_inc.new_in.end(); + i++) { + dout(0) << " osd" << *i << " IN" << endl; + derr(0) << " osd" << *i << " IN" << endl; + } // encode assert(paxos->get_version() + 1 == pending_inc.epoch); -- 2.39.5