Skip to content

Commit

Permalink
mds/SnapServer.h: add override to virtual functs
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Jarzabek <[email protected]>
  • Loading branch information
stiopaa1 committed Oct 20, 2016
1 parent 62d8e60 commit b0967da
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/mds/SnapServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class SnapServer : public MDSTableServer {
: MDSTableServer(m, TABLE_SNAP), mon_client(monc), last_checked_osdmap(0)
{}

void reset_state();
void encode_server_state(bufferlist& bl) const {
void reset_state() override;
void encode_server_state(bufferlist& bl) const override {
ENCODE_START(3, 3, bl);
::encode(last_snap, bl);
::encode(snaps, bl);
Expand All @@ -50,7 +50,7 @@ class SnapServer : public MDSTableServer {
::encode(pending_noop, bl);
ENCODE_FINISH(bl);
}
void decode_server_state(bufferlist::iterator& bl) {
void decode_server_state(bufferlist::iterator& bl) override {
DECODE_START_LEGACY_COMPAT_LEN(3, 3, 3, bl);
::decode(last_snap, bl);
::decode(snaps, bl);
Expand Down Expand Up @@ -80,12 +80,12 @@ class SnapServer : public MDSTableServer {
static void generate_test_instances(list<SnapServer*>& ls);

// server bits
void _prepare(bufferlist &bl, uint64_t reqid, mds_rank_t bymds);
void _prepare(bufferlist &bl, uint64_t reqid, mds_rank_t bymds) override;
bool _is_prepared(version_t tid);
bool _commit(version_t tid, MMDSTableRequest *req=NULL);
void _rollback(version_t tid);
void _server_update(bufferlist& bl);
void handle_query(MMDSTableRequest *m);
bool _commit(version_t tid, MMDSTableRequest *req=NULL) override;
void _rollback(version_t tid) override;
void _server_update(bufferlist& bl) override;
void handle_query(MMDSTableRequest *m) override;

void check_osd_map(bool force);
};
Expand Down

0 comments on commit b0967da

Please sign in to comment.