Only verify we encode a full map with the correct CRC if we actually
have the value in the Incremental. Otherwise, any map from an old
mon will fail. And we'll try to request a full map with a message the
old mon doesn't understand.
Signed-off-by: Sage Weil <sage@redhat.com>
injected_failure = true;
}
- if (o->get_crc() != inc.full_crc || injected_failure) {
+ if ((inc.have_crc && o->get_crc() != inc.full_crc) || injected_failure) {
dout(2) << "got incremental " << e
<< " but failed to encode full with correct crc; requesting"
<< dendl;