string result_msg;
bufferlist result_bl;
- MAuthReply() : Message(CEPH_MSG_AUTH_REPLY), protocol(0), result(0) {}
+ MAuthReply() : Message(CEPH_MSG_AUTH_REPLY), protocol(0), result(0), global_id(0) {}
MAuthReply(__u32 p, bufferlist *bl = NULL, int r = 0, uint64_t gid=0, const char *msg = "") :
Message(CEPH_MSG_AUTH_REPLY),
protocol(p), result(r), global_id(gid),
REJECT = 2,
};
int type;
+
+ MBackfillReserve()
+ : Message(MSG_OSD_BACKFILL_RESERVE, HEAD_VERSION, COMPAT_VERSION),
+ query_epoch(0), type(-1) {}
MBackfillReserve(int type,
- pg_t pgid,
- epoch_t query_epoch)
+ pg_t pgid,
+ epoch_t query_epoch)
: Message(MSG_OSD_BACKFILL_RESERVE, HEAD_VERSION, COMPAT_VERSION),
pgid(pgid), query_epoch(query_epoch),
type(type) {}
- MBackfillReserve() :
- Message(MSG_OSD_BACKFILL_RESERVE, HEAD_VERSION, COMPAT_VERSION) {}
-
const char *get_type_name() const {
return "MBackfillReserve";
}
int get_from() { return from; }
- MCacheExpire() : Message(MSG_MDS_CACHEEXPIRE) {}
+ MCacheExpire() : Message(MSG_MDS_CACHEEXPIRE), from(-1) {}
MCacheExpire(int f) :
Message(MSG_MDS_CACHEEXPIRE),
from(f) { }
__u16 mask;
__u32 duration_ms;
__u32 seq;
+
+ LeaseStat() : mask(0), duration_ms(0), seq(0) {}
+
void encode(bufferlist &bl) const {
::encode(mask, bl);
::encode(duration_ms, bl);
bool client_must_resend;
public:
- MClientRequestForward() : Message(CEPH_MSG_CLIENT_REQUEST_FORWARD) {}
+ MClientRequestForward()
+ : Message(CEPH_MSG_CLIENT_REQUEST_FORWARD),
+ dest_mds(-1), num_fwd(-1), client_must_resend(false) {}
MClientRequestForward(tid_t t, int dm, int nf, bool cmr) :
Message(CEPH_MSG_CLIENT_REQUEST_FORWARD),
dest_mds(dm), num_fwd(nf), client_must_resend(cmr) {