From: Kefu Chai Date: Fri, 28 Aug 2015 06:27:53 +0000 (+0800) Subject: osd: should use ec_pool() when checking for an ecpool X-Git-Tag: v0.94.6~103^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6ca593026f81580ecbd02ad6140347f31086a87d;p=ceph.git osd: should use ec_pool() when checking for an ecpool 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 (cherry picked from commit a5bfde69a9d14de67da1e3354173ec70ba089b37) --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 8dd6f38e15a..4cce8a36db7 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -3524,7 +3524,7 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector& 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(