Skip to content

Commit 3ba1739

Browse files
committed
qa/tasks/cephfs: use rank_asok and allow specifying rank
This will use the more efficient: ceph tell mds.<fsname>:<rank> ... Signed-off-by: Patrick Donnelly <[email protected]>
1 parent dbf1a40 commit 3ba1739

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qa/tasks/cephfs/filesystem.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,12 +1249,12 @@ def ranks_perf(self, f, status=None):
12491249
out.append((rank, f(perf)))
12501250
return out
12511251

1252-
def read_cache(self, path, depth=None):
1252+
def read_cache(self, path, depth=None, rank=None):
12531253
cmd = ["dump", "tree", path]
12541254
if depth is not None:
12551255
cmd.append(depth.__str__())
1256-
result = self.mds_asok(cmd)
1257-
if len(result) == 0:
1256+
result = self.rank_asok(cmd, rank=rank)
1257+
if result is None or len(result) == 0:
12581258
raise RuntimeError("Path not found in cache: {0}".format(path))
12591259

12601260
return result

0 commit comments

Comments
 (0)