diff options
author | Sage Weil <sage.weil@dreamhost.com> | 2012-01-30 18:31:18 +0100 |
---|---|---|
committer | Sage Weil <sage.weil@dreamhost.com> | 2012-01-30 19:34:30 +0100 |
commit | 79998762b5f5d6b1fe3e8e1ab239416bc480898c (patch) | |
tree | 93fd796275ffad958a7376faae8f40bc2b291c54 /src/messages/MMonSubscribe.h | |
parent | Merge remote branch 'gh/master' into wip-encoding (diff) | |
download | ceph-79998762b5f5d6b1fe3e8e1ab239416bc480898c.tar.xz ceph-79998762b5f5d6b1fe3e8e1ab239416bc480898c.zip |
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>
Diffstat (limited to 'src/messages/MMonSubscribe.h')
-rw-r--r-- | src/messages/MMonSubscribe.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/messages/MMonSubscribe.h b/src/messages/MMonSubscribe.h index 6b6b751cb5c..46557d3a7dc 100644 --- a/src/messages/MMonSubscribe.h +++ b/src/messages/MMonSubscribe.h @@ -68,7 +68,7 @@ public: ::decode(what, p); } } - void encode_payload(CephContext *cct) { + void encode_payload(CephContext *cct, uint64_t features) { if (get_connection()->has_feature(CEPH_FEATURE_SUBSCRIBE2)) { header.version = 2; ::encode(what, payload); |