Commit Graph

13 Commits

Author SHA1 Message Date
Sage Weil
5103338cee messages: set type in default constructor
ceph-dencoder wants this to verify it decoded the correct message type.
Not that it is likely to happen, but let's be pendantic about it anyway.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-02 21:06:33 -08:00
Sage Weil
9987f8f95c msg: go const-crazy on messages
- get_type_name()
- print()
and all the random crap they call.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-01-30 13:28:53 -08:00
Sage Weil
0e8129ad68 msg: no cct for decode_payload
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-01-30 12:28:45 -08:00
Sage Weil
11f6a840be msg: no cct needed for message encoding
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-01-30 12:03:12 -08:00
Sage Weil
79998762b5 msg: pass features explicitly into message encoders
Avoid using the connection reference; pass it in explicitly instead.  This
will make ceph-dencoder's life a bit easier.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-01-30 10:34:30 -08:00
Colin Patrick McCabe
ba61191021 msg: remove globals
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-20 16:41:42 -07:00
Markus Elfring
f4b9d9d847 Bug #98: Unique names for include guards
A couple of preprocessor symbols for include guards tampered with the reserved namespace.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-17 10:47:37 -07:00
Sage Weil
edc92490b5 types: standardize on uint64_t
The problem is that on some platforms __u64 == uint64_t (x86_64), and on
others it's doesn't (ppc64).  Which means we don't know whether to define
different versions of overloaded functions for both types or just one.

So, standardize on uint64_t.  This plays nicer with STL, which defines
hash<uint64_t> on 64 bit arches but not 32 bit.  Which means we can't
standarzie on __u64 or else hash<__u64> won't work.  Bah!
2010-05-07 14:50:20 -07:00
Greg Farnum
07cc53a212 msg: MMDSTableRequest has a private destructor 2010-03-31 14:59:43 -07:00
Sage Weil
4e7b383b42 msgr: put tid in ceph_msg_header (protocol change) 2009-12-22 11:41:47 -08:00
Sage Weil
525b26c905 mds: adjust TABLE_OP namespaces; fix prepare journal event 2008-09-10 10:14:31 -07:00
Sage Weil
a49b294291 mds: mdstable/client, anchorserver/client fixes 2008-08-03 15:08:00 -07:00
Sage Weil
586236c536 mds: refactor Anchor{Table,Client} into MDSTable{Server,Client} 2008-07-16 13:46:09 -07:00