Skip to content

Commit

Permalink
Merge pull request #6132 from SUSE/wip-13307-hammer
Browse files Browse the repository at this point in the history
dumpling incrementals do not work properly on hammer and newer

Reviewed-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
Loic Dachary committed Nov 4, 2015
2 parents de4f37b + 3c1f7cb commit 18882c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/osd/OSDMap.cc
Expand Up @@ -590,6 +590,10 @@ void OSDMap::Incremental::decode(bufferlist::iterator& bl)
bl.advance(-struct_v_size);
decode_classic(bl);
encode_features = 0;
if (struct_v >= 6)
encode_features = CEPH_FEATURE_PGID64;
else
encode_features = 0;
return;
}
{
Expand Down Expand Up @@ -641,7 +645,7 @@ void OSDMap::Incremental::decode(bufferlist::iterator& bl)
if (struct_v >= 2)
::decode(encode_features, bl);
else
encode_features = 0;
encode_features = CEPH_FEATURE_PGID64 | CEPH_FEATURE_OSDMAP_ENC;
DECODE_FINISH(bl); // osd-only data
}

Expand Down

0 comments on commit 18882c8

Please sign in to comment.