diff options
author | John Spray <john.spray@inktank.com> | 2014-05-07 14:50:35 +0200 |
---|---|---|
committer | John Spray <john.spray@inktank.com> | 2014-05-20 15:07:50 +0200 |
commit | 1612677b4300b88e567cc1cd3abd7d80268ebcc7 (patch) | |
tree | dd3efed0986286e8de5754fa56a829376d59091d /src/tools/cephfs/Resetter.h | |
parent | dencoder: add JournalPointer to types.h (diff) | |
download | ceph-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.h | 9 |
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_ */ |