X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fmessages%2FMOSDMarkMeDown.h;fp=src%2Fceph%2Fsrc%2Fmessages%2FMOSDMarkMeDown.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=0b6cb1af85372618c7b98d168ab03fe506cf57c6;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/messages/MOSDMarkMeDown.h b/src/ceph/src/messages/MOSDMarkMeDown.h deleted file mode 100644 index 0b6cb1a..0000000 --- a/src/ceph/src/messages/MOSDMarkMeDown.h +++ /dev/null @@ -1,73 +0,0 @@ -// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- -// vim: ts=8 sw=2 smarttab -/* - * Ceph - scalable distributed file system - * - * Copyright (C) 2013 Inktank Storage, Inc. - * - * This is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License version 2.1, as published by the Free Software - * Foundation. See file COPYING. - * - */ - -#ifndef CEPH_MOSDMARKMEDOWN_H -#define CEPH_MOSDMARKMEDOWN_H - -#include "messages/PaxosServiceMessage.h" - -class MOSDMarkMeDown : public PaxosServiceMessage { - - static const int HEAD_VERSION = 2; - static const int COMPAT_VERSION = 2; - - public: - uuid_d fsid; - entity_inst_t target_osd; - epoch_t epoch = 0; - bool request_ack = false; // ack requested - - MOSDMarkMeDown() - : PaxosServiceMessage(MSG_OSD_MARK_ME_DOWN, 0, - HEAD_VERSION, COMPAT_VERSION) { } - MOSDMarkMeDown(const uuid_d &fs, const entity_inst_t& f, - epoch_t e, bool request_ack) - : PaxosServiceMessage(MSG_OSD_MARK_ME_DOWN, e, - HEAD_VERSION, COMPAT_VERSION), - fsid(fs), target_osd(f), epoch(e), request_ack(request_ack) {} - private: - ~MOSDMarkMeDown() override {} - -public: - entity_inst_t get_target() const { return target_osd; } - epoch_t get_epoch() const { return epoch; } - - void decode_payload() override { - bufferlist::iterator p = payload.begin(); - paxos_decode(p); - ::decode(fsid, p); - ::decode(target_osd, p); - ::decode(epoch, p); - ::decode(request_ack, p); - } - - void encode_payload(uint64_t features) override { - paxos_encode(); - ::encode(fsid, payload); - ::encode(target_osd, payload, features); - ::encode(epoch, payload); - ::encode(request_ack, payload); - } - - const char *get_type_name() const override { return "MOSDMarkMeDown"; } - void print(ostream& out) const override { - out << "MOSDMarkMeDown(" - << "request_ack=" << request_ack - << ", target_osd=" << target_osd - << ", fsid=" << fsid - << ")"; - } -}; - -#endif