~ubuntu-branches/ubuntu/quantal/ceph/quantal

« back to all changes in this revision

Viewing changes to src/messages/MOSDPGMissing.h

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum, Clint Byrum, Micah Gersten
  • Date: 2011-02-12 22:50:26 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110212225026-yyyw4tk0msgql3ul
Tags: 0.24.2-0ubuntu1
[ Clint Byrum <clint@ubuntu.com> ]
* New upstream release. (LP: #658670, LP: #684011)
* debian/patches/fix-mkcephfs.patch: dropped (applied upstream)
* Removed .la files from libceph1-dev, libcrush1-dev and 
  librados1-dev (per Debian policy v3.9.1 10.2).
* debian/control: adding pkg-config as a build dependency
* debian/control: depend on libcrypto++-dev instead of libssl-dev
* debian/watch: added watch file

[ Micah Gersten <micahg@ubuntu.com> ]
* debian/control: add Homepage

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
 
2
// vim: ts=8 sw=2 smarttab
 
3
/*
 
4
 * Ceph - scalable distributed file system
 
5
 *
 
6
 * Copyright (C) 2010 Dreamhost
 
7
 *
 
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.
 
12
 *
 
13
 */
 
14
 
 
15
 
 
16
#ifndef CEPH_MOSDPGMISSING_H
 
17
#define CEPH_MOSDPGMISSING_H
 
18
 
 
19
#include "msg/Message.h"
 
20
 
 
21
class MOSDPGMissing : public Message {
 
22
  epoch_t epoch;
 
23
 
 
24
public:
 
25
  PG::Info info;
 
26
  PG::Missing missing;
 
27
 
 
28
  epoch_t get_epoch() { return epoch; }
 
29
 
 
30
  MOSDPGMissing() {}
 
31
  MOSDPGMissing(version_t mv, const PG::Info &info_,
 
32
                const PG::Missing &missing_)
 
33
    : Message(MSG_OSD_PG_MISSING), epoch(mv), info(info_),
 
34
      missing(missing_) { }
 
35
private:
 
36
  ~MOSDPGMissing() {}
 
37
 
 
38
public:
 
39
  const char *get_type_name() { return "pg_missing"; }
 
40
  void print(ostream& out) {
 
41
    out << "pg_missing(" << info.pgid << " e" << epoch << ")";
 
42
  }
 
43
 
 
44
  void encode_payload() {
 
45
    ::encode(epoch, payload);
 
46
    ::encode(info, payload);
 
47
    ::encode(missing, payload);
 
48
  }
 
49
  void decode_payload() {
 
50
    bufferlist::iterator p = payload.begin();
 
51
    ::decode(epoch, p);
 
52
    ::decode(info, p);
 
53
    ::decode(missing, p);
 
54
  }
 
55
};
 
56
 
 
57
#endif