summaryrefslogtreecommitdiffstats
path: root/src/tools/cephfs/TableTool.h
diff options
context:
space:
mode:
authorJohn Spray <john.spray@redhat.com>2016-02-17 15:57:17 +0100
committerJohn Spray <john.spray@redhat.com>2016-03-10 13:11:23 +0100
commit0ed5eb7a8e31448979c0725aa49fe35ca38a5f29 (patch)
tree867c1094792ec360a5170864a00532c540ab853d /src/tools/cephfs/TableTool.h
parentmon: update for multiple filesystems (diff)
downloadceph-0ed5eb7a8e31448979c0725aa49fe35ca38a5f29.tar.xz
ceph-0ed5eb7a8e31448979c0725aa49fe35ca38a5f29.zip
tools/cephfs: update for FSMap
Everywhere we used to take a rank, we now take a role (<fscid:rank>) Signed-off-by: John Spray <john.spray@redhat.com>
Diffstat (limited to 'src/tools/cephfs/TableTool.h')
-rw-r--r--src/tools/cephfs/TableTool.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/tools/cephfs/TableTool.h b/src/tools/cephfs/TableTool.h
index 57705ef1711..bcd3167b29e 100644
--- a/src/tools/cephfs/TableTool.h
+++ b/src/tools/cephfs/TableTool.h
@@ -13,10 +13,10 @@
#include "MDSUtility.h"
+#include "RoleSelector.h"
#include "include/rados/librados.hpp"
-
/**
* Command line tool for debugging the backing store of
* MDSTable instances.
@@ -24,18 +24,17 @@
class TableTool : public MDSUtility
{
private:
- mds_rank_t rank;
+ MDSRoleSelector role_selector;
// I/O handles
librados::Rados rados;
librados::IoCtx io;
- int apply_rank_fn(std::function<int(mds_rank_t, Formatter *)> fptr, Formatter *f);
+ int apply_role_fn(std::function<int(mds_role_t, Formatter *)> fptr, Formatter *f);
public:
void usage();
- TableTool() :
- rank(MDS_RANK_NONE) {}
int main(std::vector<const char*> &argv);
};
+