Skip to content

Commit

Permalink
Merge pull request #10843 from liewegas/wip-osdmap-reencode
Browse files Browse the repository at this point in the history
messages/MOSDMap: mark as enlighten OSDMap encoder

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
  • Loading branch information
liewegas committed Sep 1, 2016
2 parents e3d1a0d + 9c92d95 commit 903f94e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/messages/MOSDMap.h
Expand Up @@ -109,17 +109,17 @@ class MOSDMap : public Message {
OSDMap m;
m.decode(inc.fullmap);
inc.fullmap.clear();
m.encode(inc.fullmap, features);
m.encode(inc.fullmap, features | CEPH_FEATURE_RESERVED);
}
inc.encode(p->second, features);
inc.encode(p->second, features | CEPH_FEATURE_RESERVED);
}
for (map<epoch_t,bufferlist>::iterator p = maps.begin();
p != maps.end();
++p) {
OSDMap m;
m.decode(p->second);
p->second.clear();
m.encode(p->second, features);
m.encode(p->second, features | CEPH_FEATURE_RESERVED);
}
}
::encode(incremental_maps, payload);
Expand Down

0 comments on commit 903f94e

Please sign in to comment.