]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: scrub: only assume shard digest == oi digest for replicated pools 3236/head
authorSage Weil <sage@redhat.com>
Mon, 22 Dec 2014 15:32:36 +0000 (07:32 -0800)
committerSage Weil <sage@redhat.com>
Mon, 22 Dec 2014 15:32:36 +0000 (07:32 -0800)
commitd87918a6a61a5f3a0d39349854749e75df828f3c
tree2e78b78333aa8cad4334d2f77435d202942eef25
parenta25429c9bc341b55cebf686e16c1550a2ffcb550
osd: scrub: only assume shard digest == oi digest for replicated pools

For an EC object, the digest we get from scrub is for the *shard*, and that
is not the same as the *object* digest in the object_info_t.  Skip these
checks; we already have the per-shard digest that is verified in the EC
backend.

Fixes: #10409
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PGBackend.cc
src/osd/ReplicatedPG.cc