]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common, osd: Remove osd_read_eio_on_bad_digest config variable
authorDavid Zafman <dzafman@redhat.com>
Thu, 6 Aug 2015 23:15:05 +0000 (16:15 -0700)
committerDavid Zafman <dzafman@redhat.com>
Thu, 27 Aug 2015 21:03:22 +0000 (14:03 -0700)
In order to handle erasure coded reads where additional chunks would be able to
substitute for some bad chunks, we really need to return an indication
of bad digests or incorrectly sized chunks.  We are simply using
the error return of -EIO to convey that information for future use.

Signed-off-by: David Zafman <dzafman@redhat.com>
src/common/config_opts.h
src/osd/ReplicatedPG.cc

index 81d3291f9fc870d1c25356e04d66365af69eb350..811f66e47759df6c779e30185a1131bc0ad8c93d 100644 (file)
@@ -607,8 +607,6 @@ OPTION(osd_recover_clone_overlap, OPT_BOOL, true)   // preserve clone_overlap du
 OPTION(osd_op_num_threads_per_shard, OPT_INT, 2)
 OPTION(osd_op_num_shards, OPT_INT, 5)
 
-OPTION(osd_read_eio_on_bad_digest, OPT_BOOL, true) // return EIO if object digest is bad
-
 // Only use clone_overlap for recovery if there are fewer than
 // osd_recover_clone_overlap_limit entries in the overlap set
 OPTION(osd_recover_clone_overlap_limit, OPT_INT, 10)
index f4991fdfafce5a94386512ec11dff58601d85413..16e24c44642a275bbb5f437f2f1424ee18b1f598 100644 (file)
@@ -3844,8 +3844,7 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
                                 << " != expected 0x" << oi.data_digest
                                 << std::dec << " on " << soid;
              // FIXME fall back to replica or something?
-             if (g_conf->osd_read_eio_on_bad_digest)
-               result = -EIO;
+             result = -EIO;
            }
          }
        }