]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: increase the l_mds_openino_backtrace_fetch when fetching the backtrace 38672/head
authorXiubo Li <xiubli@redhat.com>
Mon, 21 Dec 2020 08:25:14 +0000 (16:25 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 21 Dec 2020 09:58:33 +0000 (17:58 +0800)
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/mds/CInode.cc

index 182c77b0c7b67d4b62ed702075d627fb23904332..61b8d249df68484e0598780ceb4f937a9af76491 100644 (file)
@@ -4616,6 +4616,9 @@ void CInode::validate_disk_state(CInode::validated_data *results,
       fetch.getxattr("parent", bt, bt_r);
       in->mdcache->mds->objecter->read(oid, object_locator_t(pool), fetch, CEPH_NOSNAP,
                                       NULL, 0, fin);
+      if (in->mdcache->mds->logger)
+        in->mdcache->mds->logger->inc(l_mds_openino_backtrace_fetch);
+
       using ceph::encode;
       if (!is_internal) {
         ObjectOperation scrub_tag;