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: v13.2.7~145^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F30485%2Fhead;p=ceph.git mon: show pool id in pool ls command Fixes: http://tracker.ceph.com/issues/40287 Signed-off-by: Chang Liu (cherry picked from commit 0b44a2d22bfee66dcdedfb77fffdccf7eb9e39b8) --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 6d7d08f4eeab..d76944ac0f12 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -4859,6 +4859,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();