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

« back to all changes in this revision

Viewing changes to src/messages/MRoute.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:
26
26
  entity_inst_t dest;
27
27
  
28
28
  MRoute() : Message(MSG_ROUTE), msg(NULL) {}
29
 
  MRoute(uint64_t t, Message *m, entity_inst_t i) :
30
 
    Message(MSG_ROUTE), session_mon_tid(t), msg(m), dest(i) {}
31
 
  MRoute(uint64_t t, bufferlist bl, entity_inst_t i) :
32
 
    Message(MSG_ROUTE), session_mon_tid(t), dest(i) {
 
29
  MRoute(uint64_t t, Message *m) :
 
30
    Message(MSG_ROUTE), session_mon_tid(t), msg(m) {}
 
31
  MRoute(bufferlist bl, entity_inst_t i) :
 
32
    Message(MSG_ROUTE), session_mon_tid(0), dest(i) {
33
33
    bufferlist::iterator p = bl.begin();
34
34
    msg = decode_message(p);
35
35
  }
54
54
  const char *get_type_name() { return "route"; }
55
55
  void print(ostream& o) {
56
56
    if (msg)
57
 
      o << "route(" << *msg << " to " << dest << ")";
58
 
    else
59
 
      o << "route(??? to " << dest << ")";
 
57
      o << "route(" << *msg;
 
58
    else
 
59
      o << "route(???";
 
60
    if (session_mon_tid)
 
61
      o << " tid " << session_mon_tid << ")";
 
62
    else
 
63
      o << " to " << dest << ")";
60
64
  }
61
65
};
62
66