]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: msg: Better output/debugging
authorGreg Farnum <gregf@hq.newdream.net>
Thu, 18 Mar 2010 18:46:37 +0000 (11:46 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Thu, 18 Mar 2010 21:47:43 +0000 (14:47 -0700)
src/messages/MPoolOpReply.h
src/mon/OSDMonitor.cc

index 7181dadc8ec6921b06b8f0e6150e6d77f13938c9..d6f93d70ccda87f1b35132a143ce54cef1d05978 100644 (file)
@@ -32,7 +32,8 @@ public:
   const char *get_type_name() { return "poolopreply"; }
 
   void print(ostream& out) {
-    out << "poolopreply(" << get_tid() << " v" << version << ")";
+    out << "poolopreply(reply:" << strerror(-replyCode) << ", "
+       << get_tid() << " v" << version << ")";
   }
 
   void encode_payload() {
index 0c003abd9208f4e9ed58f5050c25c1664093f5dd..8876c23d3c3869f3e24928a0dcda6bfda34429e9 100644 (file)
@@ -1404,6 +1404,7 @@ bool OSDMonitor::prepare_pool_op_create (MPoolOp *m)
   if (!err) {
     paxos->wait_for_commit(new OSDMonitor::C_PoolOp(this, m, err, pending_inc.epoch));
   } else {
+    dout(10) << "prepare_new_pool returned err " << strerror(-err) << dendl;
     _pool_op(m, err, pending_inc.epoch);
   }
   return true;
@@ -1437,6 +1438,7 @@ bool OSDMonitor::prepare_pool_op_auid (MPoolOp *m)
 
 void OSDMonitor::_pool_op(MPoolOp *m, int replyCode, epoch_t epoch)
 {
+  dout(20) << "_pool_op returning with replyCode " << replyCode << dendl;
   MPoolOpReply *reply = new MPoolOpReply(m->fsid, m->get_tid(),
                                         replyCode, epoch, mon->get_epoch());
   mon->send_reply(m, reply);