]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: formatted output for 'fsid'
authorDan Mick <dan.mick@inktank.com>
Thu, 11 Jul 2013 00:18:05 +0000 (17:18 -0700)
committerDan Mick <dan.mick@inktank.com>
Thu, 11 Jul 2013 03:58:50 +0000 (20:58 -0700)
Signed-off-by: Dan Mick <dan.mick@inktank.com>
src/mon/Monitor.cc

index f64b6b1b318d26e1e16670d61d01055fbc078ea7..b639a8e32aa0350f2286a7ca0e74021f90ae060c 100644 (file)
@@ -1951,7 +1951,14 @@ void Monitor::handle_command(MMonCommand *m)
 
   if (prefix == "fsid") {
     ds << monmap->fsid;
-    rdata.append(ds);
+    if (f) {
+      f->open_object_section("fsid");
+      f->dump_stream("fsid") << monmap->fsid;
+      f->close_section();
+      f->flush(rdata);
+    } else {
+      rdata.append(ds);
+    }
     reply_command(m, 0, "", rdata, 0);
     return;
   }