]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: should use ec_pool() when checking for an ecpool
authorKefu Chai <kchai@redhat.com>
Fri, 28 Aug 2015 06:27:53 +0000 (14:27 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 14 Sep 2015 13:22:34 +0000 (21:22 +0800)
we were using pool.info.require_rollback() in do_osd_ops() when
handling OP_SPARSE_READ to tell if a pool is an ecpool. should
use pool.info.ec_pool() instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit a5bfde69a9d14de67da1e3354173ec70ba089b37)

src/osd/ReplicatedPG.cc

index 8dd6f38e15a0845e7080a766bba72711acea4fec..4cce8a36db7bab4ccf990f6f48e2fa9422cce9a0 100644 (file)
@@ -3524,7 +3524,7 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
        break;
       }
       ++ctx->num_read;
-      if (pool.info.require_rollback()) {
+      if (pool.info.ec_pool()) {
        // translate sparse read to a normal one if not supported
        ctx->pending_async_reads.push_back(
          make_pair(