From: Chang Liu Date: Tue, 11 Jun 2019 11:33:23 +0000 (+0800) Subject: mon: show pool id in pool ls command X-Git-Tag: v15.1.0~1803^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0b44a2d22bfee66dcdedfb77fffdccf7eb9e39b8;p=ceph.git mon: show pool id in pool ls command Fixes: http://tracker.ceph.com/issues/40287 Signed-off-by: Chang Liu --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 8db5cdfeb9c..c635d463e4c 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -5296,6 +5296,7 @@ bool OSDMonitor::preprocess_command(MonOpRequestRef op) if (f) { if (detail == "detail") { f->open_object_section("pool"); + f->dump_int("pool_id", it->first); f->dump_string("pool_name", osdmap.get_pool_name(it->first)); it->second.dump(f.get()); f->close_section();