~ubuntu-branches/ubuntu/raring/ceph/raring

« back to all changes in this revision

Viewing changes to src/messages/MMonCommandAck.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-06-08 15:54:37 UTC
  • mfrom: (1.1.8) (0.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20120608155437-gy3j9k6wzv7w4gn9
Tags: 0.44.1-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - d/control: Switch from libcryptopp to libnss as libcryptopp
    is not seeded.
  - d/control,d/rules: Move from python-support to dh_python2.
  - d/patches/manpage_updates*.patch: cherry picked upstream manpage
    updates warning about lack of encryption, per MIR review.
  - d/rules,d/control: Drop radosgw since libfcgi is not in main and
    the code may not be suitable for LTS.
  - d/rules,d/control: Drop tcmalloc since google perftools is not
    in main yet.
  - d/rules,d/control: Drop ceph-fuse entirely per MIR review
    recommendation.
* d/patches/fix-radosgw-tests.patch: Cherry picked patch from upstream
  VCS to fixup tests to conditionally use radosgw if enabled.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
  ~MMonCommandAck() {}
32
32
 
33
33
public:
34
 
  const char *get_type_name() { return "mon_command"; }
35
 
  void print(ostream& o) {
 
34
  const char *get_type_name() const { return "mon_command"; }
 
35
  void print(ostream& o) const {
36
36
    o << "mon_command_ack(" << cmd << "=" << r << " " << rs << " v" << version << ")";
37
37
  }
38
38
  
39
 
  void encode_payload(CephContext *cct) {
 
39
  void encode_payload(uint64_t features) {
40
40
    paxos_encode();
41
41
    ::encode(r, payload);
42
42
    ::encode(rs, payload);
43
43
    ::encode(cmd, payload);
44
44
  }
45
 
  void decode_payload(CephContext *cct) {
 
45
  void decode_payload() {
46
46
    bufferlist::iterator p = payload.begin();
47
47
    paxos_decode(p);
48
48
    ::decode(r, p);