mirror of
https://github.com/ceph/ceph
synced 2024-12-24 04:14:07 +00:00
message/MMonMap: reencode MonMap for old (non-addr2) clients
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
5e51cea658
commit
1893315baa
@ -34,7 +34,9 @@ public:
|
||||
const char *get_type_name() const { return "mon_map"; }
|
||||
|
||||
void encode_payload(uint64_t features) {
|
||||
if (monmapbl.length() && (features & CEPH_FEATURE_MONENC) == 0) {
|
||||
if (monmapbl.length() &&
|
||||
((features & CEPH_FEATURE_MONENC) == 0 ||
|
||||
(features & CEPH_FEATURE_MSG_ADDR2) == 0)) {
|
||||
// reencode old-format monmap
|
||||
MonMap t;
|
||||
t.decode(monmapbl);
|
||||
|
Loading…
Reference in New Issue
Block a user