]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: add osd_distrust_data_digest option 23184/head
authorSage Weil <sage@redhat.com>
Mon, 23 Jul 2018 15:11:53 +0000 (10:11 -0500)
committerSage Weil <sage@redhat.com>
Mon, 23 Jul 2018 15:11:53 +0000 (10:11 -0500)
commit7a50c7f819ea4b59103173082ca96921706fcbde
tree31d57f2e7aab73edb6090ba3b3d7329398eabaf5
parent8728464364c314cf7120dc8c3d8e71b98a5d2e00
common: add osd_distrust_data_digest option

If we have reason to distrust the stored full-object oi data digests,
this option will ignore them (and opportunistically clear them).  It
basically affects the same behaviors that osd_skip_data_digest except
the previous option only takes effect if bluestore is in use, while this
option is unconditional.

This serves a workaround for clusters that suffered the 12.2.6 bug that
produced bad full-object digests and *also* had PGs' primaries move from
bluestore to filestore nodes.  In those situations, this option can be
set to true.

After all OSDs are upgrade and all PGs come back with a clean deep
scrub this option can be disabled again.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit b8476ebc5b3c5b5d801bf875bbd6dce5b113325c)

# Conflicts:
# src/osd/PrimaryLogPG.cc

- osd->osd_skip_data_digest, not g_conf->osd_skip_data_digest
src/common/legacy_config_opts.h
src/common/options.cc
src/osd/PrimaryLogPG.cc