1
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2
// vim: ts=8 sw=2 smarttab
4
* Ceph - scalable distributed file system
6
* Copyright (C) 2010 Dreamhost
8
* This is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License version 2.1, as published by the Free Software
11
* Foundation. See file COPYING.
16
#ifndef CEPH_MOSDPGMISSING_H
17
#define CEPH_MOSDPGMISSING_H
19
#include "msg/Message.h"
21
class MOSDPGMissing : public Message {
28
epoch_t get_epoch() { return epoch; }
31
MOSDPGMissing(version_t mv, const PG::Info &info_,
32
const PG::Missing &missing_)
33
: Message(MSG_OSD_PG_MISSING), epoch(mv), info(info_),
39
const char *get_type_name() { return "pg_missing"; }
40
void print(ostream& out) {
41
out << "pg_missing(" << info.pgid << " e" << epoch << ")";
44
void encode_payload() {
45
::encode(epoch, payload);
46
::encode(info, payload);
47
::encode(missing, payload);
49
void decode_payload() {
50
bufferlist::iterator p = payload.begin();