mirror of
https://github.com/ceph/ceph
synced 2025-01-11 21:50:26 +00:00
Merge pull request #1126 from ceph/wip-osdmapenc-fix
MOSDMap: reencode maps if target doesn't have OSDMAP_ENC Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
commit
8eaef4140b
@ -86,11 +86,12 @@ public:
|
||||
::encode(fsid, payload);
|
||||
if ((features & CEPH_FEATURE_PGID64) == 0 ||
|
||||
(features & CEPH_FEATURE_PGPOOL3) == 0 ||
|
||||
(features & CEPH_FEATURE_OSDENC) == 0) {
|
||||
(features & CEPH_FEATURE_OSDENC) == 0 ||
|
||||
(features & CEPH_FEATURE_OSDMAP_ENC) == 0) {
|
||||
if ((features & CEPH_FEATURE_PGID64) == 0 ||
|
||||
(features & CEPH_FEATURE_PGPOOL3) == 0)
|
||||
header.version = 1; // old old_client version
|
||||
else
|
||||
else if ((features & CEPH_FEATURE_OSDENC) == 0)
|
||||
header.version = 2; // old pg_pool_t
|
||||
|
||||
// reencode maps using old format
|
||||
|
Loading…
Reference in New Issue
Block a user