]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PGBackend: do not rewrite ec object oi checksums 3910/head
authorSamuel Just <sjust@redhat.com>
Sat, 7 Mar 2015 02:30:41 +0000 (18:30 -0800)
committerSamuel Just <sjust@redhat.com>
Fri, 13 Mar 2015 22:29:53 +0000 (15:29 -0700)
Deep scrub does not actually give us the whole-object checksum for an ec
object, only the checksum for the first shard.  We ignore it in scrub
for ec pools anyway in be_select_auth_object.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/PGBackend.cc

index 179630dfda26e47b5cb10e7633dacbf168a8f369..cb856eb806cd3e0f59dfc2a919c274ef924a097f 100644 (file)
@@ -622,6 +622,7 @@ void PGBackend::be_compare_scrubmaps(
       authoritative[*k] = auth_list;
     }
     if (okseed &&
+       parent->get_pool().is_replicated() &&
        auth_object.digest_present && auth_object.omap_digest_present &&
        (!auth_oi.is_data_digest() || !auth_oi.is_omap_digest() ||
         (g_conf->osd_debug_scrub_chance_rewrite_digest &&