]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: don't print osdmap cache stats in 'get cache stats' command
authorMohamad Gebai <mgebai@suse.com>
Wed, 3 Oct 2018 22:32:01 +0000 (18:32 -0400)
committerMohamad Gebai <mgebai@suse.com>
Wed, 10 Oct 2018 15:45:51 +0000 (11:45 -0400)
Signed-off-by: Mohamad Gebai <mgebai@suse.com>
src/osd/OSD.cc

index 136782ae97a55b58488be751fa9193644a82920f..74fc3e37d57f50fbd9cb521e185bfb0612eea2d8 100644 (file)
@@ -6521,7 +6521,6 @@ int OSD::_do_command(
 
   else if (prefix == "get cache stats") {
     int obj_ctx_count = 0;
-    int osd_map_count = service.map_cache.get_count();
     vector<PGRef> pgs;
     _get_pgs(&pgs);
     for (auto& pg: pgs) {
@@ -6531,13 +6530,11 @@ int OSD::_do_command(
       f->open_object_section("cache_stats");
       f->dump_int("object_ctx", obj_ctx_count);
       store->dump_cache_stats(f.get());
-      f->dump_int("osd_map", osd_map_count);
       f->close_section();
       f->flush(ds);
     } else {
       ds << "object_ctx: " << obj_ctx_count;
       store->dump_cache_stats(ds);
-      ds << "osd_map: " << osd_map_count;
     }
   }