]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedBackend: handle tailing zeros of recovering objects nicer 38662/head
authorsongweibin <song.weibin@zte.com.cn>
Sat, 19 Dec 2020 10:50:31 +0000 (18:50 +0800)
committersongweibin <song.weibin@zte.com.cn>
Mon, 21 Dec 2020 09:27:20 +0000 (17:27 +0800)
commit9e541a3b2b63807053f86f9a56cfdfd47209b873
treed72615829697867c77c2aab599ed55485e2c669d
parent34112907a7f0614ce95552bfd100ebe087595f83
osd/ReplicatedBackend: handle tailing zeros of recovering objects nicer

E.g.,
(1) recovery_info.copy_subset = [0, 4194304]
(2) copy_subset(fiemap) = [0, 8192]
(3) out_op->data_included.span_of(copy_subset, 0, 4194304) = [0, 8192]

We'll set new_progress.data_recovered_to = 8192 as a result, and
fail to complete the push in one go.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/ReplicatedBackend.cc