]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix dump of prealloc and used inos
authorJeff Layton <jlayton@redhat.com>
Thu, 10 Oct 2019 13:16:13 +0000 (09:16 -0400)
committerJeff Layton <jlayton@redhat.com>
Sat, 11 Jan 2020 11:11:00 +0000 (06:11 -0500)
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 <jlayton@redhat.com>
src/mds/mdstypes.cc

index 2f976e75fa3bbf332a0ecd02fb0e7a7a165757fb..059703560c10beab6d5d0adfcb1c3fd470750c1f 100644 (file)
@@ -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();
   }