From 3ba17390e92c21a3eba7337a2da0df79f6bf49ca Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Fri, 20 Jan 2023 18:20:15 -0500 Subject: [PATCH] qa/tasks/cephfs: use rank_asok and allow specifying rank This will use the more efficient: ceph tell mds.: ... Signed-off-by: Patrick Donnelly --- qa/tasks/cephfs/filesystem.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qa/tasks/cephfs/filesystem.py b/qa/tasks/cephfs/filesystem.py index 8dbb576972b97..d9ccfc51266b0 100644 --- a/qa/tasks/cephfs/filesystem.py +++ b/qa/tasks/cephfs/filesystem.py @@ -1249,12 +1249,12 @@ class Filesystem(MDSCluster): out.append((rank, f(perf))) return out - def read_cache(self, path, depth=None): + def read_cache(self, path, depth=None, rank=None): cmd = ["dump", "tree", path] if depth is not None: cmd.append(depth.__str__()) - result = self.mds_asok(cmd) - if len(result) == 0: + result = self.rank_asok(cmd, rank=rank) + if result is None or len(result) == 0: raise RuntimeError("Path not found in cache: {0}".format(path)) return result -- 2.39.5