]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/osd_types: be pedantic about encoding last_force_op_resend without feature bit 2094/head
authorSage Weil <sage@redhat.com>
Fri, 11 Jul 2014 18:31:22 +0000 (11:31 -0700)
committerSage Weil <sage@redhat.com>
Fri, 11 Jul 2014 18:31:22 +0000 (11:31 -0700)
commitc93da05bd3dd6b73e8cfa182c6349359b042717c
tree0095c7d9f919e2e28bac829e8a9ef568a61c84d6
parent712d5d1e2989e67635576c21421af74b96a0f84c
osd/osd_types: be pedantic about encoding last_force_op_resend without feature bit

The addition of the value is completely backward compatible, but if the
mon feature bits don't match it can cause monitor scrub noice (due to the
parallel OSDMap encoding).  Avoid that by only adding the new field if the
feature (which was added 2 patches after the encoding, see
3152faf79f498a723ae0fe44301ccb21b15a96ab and
45e79a17a932192995f8328ae9f6e8a2a6348d10.

Fixes: #8815
Backport: firefly
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/osd_types.cc