summaryrefslogtreecommitdiff
path: root/src/messages
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2012-05-14 21:01:58 -0700
committerSage Weil <sage@inktank.com>2012-05-14 21:01:58 -0700
commita9f5d7740632e91bcdaa826fa78e2bff4523dc7f (patch)
tree51735e1738fd31dd45bbbc37909fe546616db5b0 /src/messages
parent31dc3945f5876bf1df2eedabf5797a0c89b6ee30 (diff)
downloadceph-a9f5d7740632e91bcdaa826fa78e2bff4523dc7f.tar.gz
monmap: use feature bits and single encode() method
Instead of selecting an encode method in the caller, use a normal features argument to encode() and branch there. Leave behavior of all callers untouched. We continue to assume, for example, that all monitors have the same features, and that 'ceph mon getmap' should return the fully-featured encoding. Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'src/messages')
-rw-r--r--src/messages/MMonElection.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/messages/MMonElection.h b/src/messages/MMonElection.h
index 7594c49cc17..5adf6ff432b 100644
--- a/src/messages/MMonElection.h
+++ b/src/messages/MMonElection.h
@@ -48,7 +48,7 @@ public:
MMonElection(int o, epoch_t e, MonMap *m) :
Message(MSG_MON_ELECTION, HEAD_VERSION),
fsid(m->fsid), op(o), epoch(e) {
- m->encode(monmap_bl);
+ m->encode(monmap_bl, -1);
}
private:
~MMonElection() {}