X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fmessages%2FMOSDFull.h;fp=src%2Fceph%2Fsrc%2Fmessages%2FMOSDFull.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=5fcd3c8b37d7cde442af8709afa01108156cccc9;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/messages/MOSDFull.h b/src/ceph/src/messages/MOSDFull.h deleted file mode 100644 index 5fcd3c8..0000000 --- a/src/ceph/src/messages/MOSDFull.h +++ /dev/null @@ -1,50 +0,0 @@ -// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- -// vim: ts=8 sw=2 smarttab - -#ifndef CEPH_MOSDFULL_H -#define CEPH_MOSDFULL_H - -#include "messages/PaxosServiceMessage.h" -#include "osd/OSDMap.h" - -// tell the mon to update the full/nearfull bits. note that in the -// future this message could be generalized to other state bits, but -// for now name it for its sole application. - -class MOSDFull : public PaxosServiceMessage { - public: - epoch_t map_epoch = 0; - uint32_t state = 0; - -private: - ~MOSDFull() {} - -public: - MOSDFull(epoch_t e, unsigned s) - : PaxosServiceMessage(MSG_OSD_FULL, e), map_epoch(e), state(s) { } - MOSDFull() - : PaxosServiceMessage(MSG_OSD_FULL, 0) {} - -public: - void encode_payload(uint64_t features) { - paxos_encode(); - ::encode(map_epoch, payload); - ::encode(state, payload); - } - void decode_payload() { - bufferlist::iterator p = payload.begin(); - paxos_decode(p); - ::decode(map_epoch, p); - ::decode(state, p); - } - - const char *get_type_name() const { return "osd_full"; } - void print(ostream &out) const { - set states; - OSDMap::calc_state_set(state, states); - out << "osd_full(e" << map_epoch << " " << states << " v" << version << ")"; - } - -}; - -#endif