Skip to content

Commit

Permalink
mon: show pool id in pool ls command
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/40287

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
  • Loading branch information
liuchang0812 committed Aug 20, 2019
1 parent 611c894 commit 0b44a2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mon/OSDMonitor.cc
Expand Up @@ -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();
Expand Down

0 comments on commit 0b44a2d

Please sign in to comment.