summaryrefslogtreecommitdiff
path: root/src/msg/Message.h
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2012-12-27 16:38:45 -0800
committerSage Weil <sage@inktank.com>2012-12-27 17:24:54 -0800
commit64b845f6ba9bcf2413c0d1d272b30fd35df841cb (patch)
treeda99f55d41f0b40a66a46eab962c60354eb50936 /src/msg/Message.h
parent2fbe3e17d6abe44de972e58861e25971d2d728f7 (diff)
downloadceph-64b845f6ba9bcf2413c0d1d272b30fd35df841cb.tar.gz
features is uint64_t
This won't bite us for a while yet (we're on bit 26), but it will soon! Signed-off-by: Sage Weil <sage@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'src/msg/Message.h')
-rw-r--r--src/msg/Message.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/msg/Message.h b/src/msg/Message.h
index fc434ed9b85..cf7d131c32e 100644
--- a/src/msg/Message.h
+++ b/src/msg/Message.h
@@ -158,7 +158,7 @@ struct Connection : public RefCountedObject {
RefCountedObject *priv;
int peer_type;
entity_addr_t peer_addr;
- unsigned features;
+ uint64_t features;
RefCountedObject *pipe;
bool failed; /// true if we are a lossy connection that has failed.
@@ -250,10 +250,10 @@ public:
const entity_addr_t& get_peer_addr() { return peer_addr; }
void set_peer_addr(const entity_addr_t& a) { peer_addr = a; }
- int get_features() const { return features; }
- bool has_feature(int f) const { return features & f; }
- void set_features(unsigned f) { features = f; }
- void set_feature(unsigned f) { features |= f; }
+ uint64_t get_features() const { return features; }
+ bool has_feature(uint64_t f) const { return features & f; }
+ void set_features(uint64_t f) { features = f; }
+ void set_feature(uint64_t f) { features |= f; }
void post_rx_buffer(tid_t tid, bufferlist& bl) {
Mutex::Locker l(lock);