From: Jeff Layton Date: Thu, 10 Oct 2019 13:16:13 +0000 (-0400) Subject: mds: fix dump of prealloc and used inos X-Git-Tag: v15.1.0~128^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=978e40e424da71648837de4d9079c040314d5682;p=ceph.git mds: fix dump of prealloc and used inos They're inode number ranges, so display the start like we would other inode numbers (e.g. completed_requests.created_ino). Signed-off-by: Jeff Layton --- diff --git a/src/mds/mdstypes.cc b/src/mds/mdstypes.cc index 2f976e75fa3..059703560c1 100644 --- a/src/mds/mdstypes.cc +++ b/src/mds/mdstypes.cc @@ -570,7 +570,7 @@ void session_info_t::dump(Formatter *f) const f->open_array_section("prealloc_inos"); for (const auto& [start, len] : prealloc_inos) { f->open_object_section("ino_range"); - f->dump_unsigned("start", start); + f->dump_stream("start") << start; f->dump_unsigned("length", len); f->close_section(); } @@ -579,7 +579,7 @@ void session_info_t::dump(Formatter *f) const f->open_array_section("used_inos"); for (const auto& [start, len] : used_inos) { f->open_object_section("ino_range"); - f->dump_unsigned("start", start); + f->dump_stream("start") << start; f->dump_unsigned("length", len); f->close_section(); }