From 3e845b56a3c4a62c5e635ace1174f4421fd42aa6 Mon Sep 17 00:00:00 2001 From: Joao Eduardo Luis Date: Wed, 4 Dec 2013 00:41:13 +0000 Subject: [PATCH] mon: MDSMonitor: print map on encode_pending() iff debug mon = 30+ Signed-off-by: Joao Eduardo Luis --- src/mon/MDSMonitor.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index f79e03a5a41a8..600a41059cecb 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -124,7 +124,8 @@ void MDSMonitor::encode_pending(MonitorDBStore::Transaction *t) pending_mdsmap.modified = ceph_clock_now(g_ceph_context); - //print_map(pending_mdsmap); + // print map iff 'debug mon = 30' or higher + print_map(pending_mdsmap, 30); // apply to paxos assert(get_last_committed() + 1 == pending_mdsmap.epoch); -- 2.39.5