messages/MOSDAlive.h\
messages/MOSDBoot.h\
messages/MOSDFailure.h\
- messages/MOSDIn.h\
messages/MOSDMap.h\
messages/MOSDOp.h\
messages/MOSDOpReply.h\
- messages/MOSDOut.h\
messages/MOSDPGCreate.h\
messages/MOSDPGInfo.h\
messages/MOSDPGLog.h\
+++ /dev/null
-// -*- 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) 2004-2006 Sage Weil <sage@newdream.net>
- *
- * 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 __MOSDIN_H
-#define __MOSDIN_H
-
-#include "messages/PaxosServiceMessage.h"
-
-
-class MOSDIn : public PaxosServiceMessage {
- public:
- epoch_t map_epoch;
-
- MOSDIn(epoch_t e) : PaxosServiceMessage(MSG_OSD_IN, e), map_epoch(e) {
- }
- MOSDIn() {}
-
- void encode_payload() {
- paxos_encode();
- ::encode(map_epoch, payload);
- }
- void decode_payload() {
- bufferlist::iterator p = payload.begin();
- paxos_decode(p);
- ::decode(map_epoch, p);
- }
-
- const char *get_type_name() { return "oin"; }
-};
-
-#endif
+++ /dev/null
-// -*- 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) 2004-2006 Sage Weil <sage@newdream.net>
- *
- * 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 __MOSDOUT_H
-#define __MOSDOUT_H
-
-#include "messages/PaxosServiceMessage.h"
-
-
-class MOSDOut : public PaxosServiceMessage {
- public:
- epoch_t map_epoch;
-
- MOSDOut(epoch_t e) : PaxosServiceMessage(MSG_OSD_OUT, e), map_epoch(e) {
- }
- MOSDOut() {}
-
- void encode_payload() {
- paxos_encode();
- ::encode(map_epoch, payload);
- }
- void decode_payload() {
- bufferlist::iterator p = payload.begin();
- paxos_decode(p);
- ::decode(map_epoch, p);
- }
-
- const char *get_type_name() { return "oout"; }
-};
-
-#endif
// OSDs
case MSG_OSD_FAILURE:
case MSG_OSD_BOOT:
- case MSG_OSD_IN:
- case MSG_OSD_OUT:
case MSG_OSD_ALIVE:
case MSG_OSD_PGTEMP:
ALLOW_MESSAGES_FROM(CEPH_ENTITY_TYPE_OSD);
return preprocess_alive((MOSDAlive*)m);
case MSG_OSD_PGTEMP:
return preprocess_pgtemp((MOSDPGTemp*)m);
- /*
- case MSG_OSD_OUT:
- return preprocess_out((MOSDOut*)m);
- */
case MSG_POOLOP:
return preprocess_pool_op((MPoolOp*)m);
case MSG_MON_COMMAND:
return prepare_command((MMonCommand*)m);
- /*
- case MSG_OSD_OUT:
- return prepare_out((MOSDOut*)m);
- */
case MSG_POOLOP:
return prepare_pool_op((MPoolOp*)m);
}
};
- bool preprocess_out(class MOSDOut *m);
- bool prepare_out(class MOSDOut *m);
-
bool preprocess_remove_snaps(class MRemoveSnaps *m);
bool prepare_remove_snaps(class MRemoveSnaps *m);
#include "messages/MOSDBoot.h"
#include "messages/MOSDAlive.h"
#include "messages/MOSDPGTemp.h"
-#include "messages/MOSDIn.h"
-#include "messages/MOSDOut.h"
#include "messages/MOSDFailure.h"
#include "messages/MOSDPing.h"
#include "messages/MOSDOp.h"
case MSG_OSD_PGTEMP:
m = new MOSDPGTemp;
break;
- case MSG_OSD_IN:
- m = new MOSDIn();
- break;
- case MSG_OSD_OUT:
- m = new MOSDOut();
- break;
case MSG_OSD_FAILURE:
m = new MOSDFailure();
break;
#define MSG_OSD_BOOT 71
#define MSG_OSD_FAILURE 72
#define MSG_OSD_ALIVE 73
-#define MSG_OSD_IN 74
-#define MSG_OSD_OUT 75
#define MSG_OSD_SUBOP 76
#define MSG_OSD_SUBOPREPLY 77
#include "messages/MOSDSubOp.h"
#include "messages/MOSDSubOpReply.h"
#include "messages/MOSDBoot.h"
-#include "messages/MOSDIn.h"
-#include "messages/MOSDOut.h"
#include "messages/MOSDPGTemp.h"
#include "messages/MOSDMap.h"