They were unused/ignored.
messages/MPGStats.h\
messages/MPGStatsAck.h\
messages/MPing.h\
- messages/MPingAck.h\
messages/MRemoveSnaps.h\
messages/MStatfs.h\
messages/MStatfsReply.h\
/* misc */
#define CEPH_MSG_SHUTDOWN 1
#define CEPH_MSG_PING 2
-#define CEPH_MSG_PING_ACK 3
/* client <-> monitor */
#define CEPH_MSG_MON_MAP 4
#define CEPH_MSG_OSD_OPREPLY 43
-struct ceph_ping {
- __le64 seq;
- struct ceph_timespec stamp;
-};
-
-
/* for statfs_reply. units are KB, objects. */
struct ceph_statfs {
__le64 f_total;
class MPing : public Message {
public:
- __u64 seq;
- utime_t stamp;
- MPing(int s, utime_t w) : Message(CEPH_MSG_PING) {
- seq = s;
- stamp = w;
- }
MPing() : Message(CEPH_MSG_PING) {}
- void decode_payload() {
- bufferlist::iterator p = payload.begin();
- ::decode(seq, p);
- ::decode(stamp, p);
- }
- void encode_payload() {
- ::encode(seq, payload);
- ::encode(stamp, payload);
- }
-
+ void decode_payload() { }
+ void encode_payload() { }
const char *get_type_name() { return "ping"; }
};
+++ /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 __MPINGACK_H
-#define __MPINGACK_H
-
-#include "MPing.h"
-
-
-class MPingAck : public Message {
- public:
- __u64 seq;
- utime_t sender_stamp;
- utime_t reply_stamp;
-
- MPingAck() {}
- MPingAck(MPing *p, utime_t w) : Message(CEPH_MSG_PING_ACK) {
- seq = p->seq;
- sender_stamp = p->stamp;
- reply_stamp = w;
- }
-
- void decode_payload() {
- bufferlist::iterator p = payload.begin();
- ::decode(seq, p);
- ::decode(sender_stamp, p);
- ::decode(reply_stamp, p);
- }
- void encode_payload() {
- ::encode(seq, payload);
- ::encode(sender_stamp, payload);
- ::encode(reply_stamp, payload);
- }
-
- const char *get_type_name() { return "pinga"; }
-};
-
-#endif
#include "msg/Message.h"
#include "msg/Messenger.h"
-#include "messages/MPing.h"
-#include "messages/MPingAck.h"
#include "messages/MMonMap.h"
#include "messages/MMonGetMap.h"
#include "messages/MGenericMessage.h"
handle_mon_get_map((MMonGetMap*)m);
break;
- case CEPH_MSG_PING_ACK:
- handle_ping_ack((MPingAck*)m);
- break;
-
case CEPH_MSG_SHUTDOWN:
if (m->get_source().is_osd())
osdmon->dispatch(m);
delete m;
}
-void Monitor::handle_ping_ack(MPingAck *m)
-{
- // ...
-
- delete m;
-}
// messages
void handle_mon_get_map(MMonGetMap *m);
void handle_shutdown(Message *m);
- void handle_ping_ack(class MPingAck *m);
void handle_command(class MMonCommand *m);
void reply_command(MMonCommand *m, int rc, const string &rs);
#include "messages/MMonElection.h"
#include "messages/MPing.h"
-#include "messages/MPingAck.h"
#include "messages/MOSDBoot.h"
#include "messages/MOSDAlive.h"
case CEPH_MSG_PING:
m = new MPing();
break;
- case CEPH_MSG_PING_ACK:
- m = new MPingAck();
- break;
case CEPH_MSG_MON_MAP:
m = new MMonMap;
#include "messages/MGenericMessage.h"
#include "messages/MPing.h"
-#include "messages/MPingAck.h"
#include "messages/MOSDPing.h"
#include "messages/MOSDFailure.h"
#include "messages/MOSDOp.h"