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)
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(