summaryrefslogtreecommitdiffstats
path: root/src/tools/cephfs/Resetter.h
diff options
context:
space:
mode:
authorJohn Spray <john.spray@inktank.com>2014-05-07 14:50:35 +0200
committerJohn Spray <john.spray@inktank.com>2014-05-20 15:07:50 +0200
commit1612677b4300b88e567cc1cd3abd7d80268ebcc7 (patch)
treedd3efed0986286e8de5754fa56a829376d59091d /src/tools/cephfs/Resetter.h
parentdencoder: add JournalPointer to types.h (diff)
downloadceph-1612677b4300b88e567cc1cd3abd7d80268ebcc7.tar.xz
ceph-1612677b4300b88e567cc1cd3abd7d80268ebcc7.zip
mds: Generalize JournalPointer functionality
...so that we can use it places like Resetter too. And use it there. Signed-off-by: John Spray <john.spray@inktank.com>
Diffstat (limited to 'src/tools/cephfs/Resetter.h')
-rw-r--r--src/tools/cephfs/Resetter.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/tools/cephfs/Resetter.h b/src/tools/cephfs/Resetter.h
index 5664de3b8e3..be1053801db 100644
--- a/src/tools/cephfs/Resetter.h
+++ b/src/tools/cephfs/Resetter.h
@@ -15,7 +15,6 @@
#define JOURNAL_RESETTER_H_
-#include "osdc/Journaler.h"
#include "MDSUtility.h"
/**
@@ -25,13 +24,11 @@
* of the file to dump to.
*/
class Resetter : public MDSUtility {
+ int rank;
public:
- Journaler *journaler;
+ Resetter() {}
- Resetter() : journaler(NULL) {}
-
- int init(int rank);
- void reset();
+ void reset(int rank);
};
#endif /* JOURNAL_RESETTER_H_ */