]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: sparse read should return (extent_map, data_bufferlist) 5474/head
authorYunchuan Wen <yunchuanwen@ubuntukylin.com>
Wed, 5 Aug 2015 05:04:38 +0000 (13:04 +0800)
committerYunchuan Wen <yunchuanwen@ubuntukylin.com>
Wed, 5 Aug 2015 05:46:38 +0000 (13:46 +0800)
Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
src/osd/ReplicatedPG.cc

index 8a0efec6b9e51195aa63be3a5a026401f77c3932..dd760487c8ef9c503b9e250b7776166a0fdbd7b0 100644 (file)
@@ -3605,7 +3605,7 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
 
         op.extent.length = total_read;
 
-        ::encode_destructively(bl, osd_op.outdata);
+        osd_op.outdata.claim_append(bl);
         ::encode_destructively(data_bl, osd_op.outdata);
 
        ctx->delta_stats.num_rd_kb += SHIFT_ROUND_UP(op.extent.length, 10);