]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: fix the extent length error of the sync read 25711/head
authorXiaofei Cui <cuixiaofei@sangfor.com.cn>
Mon, 17 Dec 2018 08:56:59 +0000 (16:56 +0800)
committerAshish Singh <assingh@redhat.com>
Thu, 27 Dec 2018 08:21:05 +0000 (13:51 +0530)
commit39588fbfbf6d839b5d1a388a2f9b140bcdb9ec5b
tree1a425304f5a3b6fcbd7fed2b420428b288f39797
parent7f094a2228ed656068da3815865f7649ac4d2cd8
osd/PrimaryLogPG: fix the extent length error of the sync read

The extent.length of the sync read is changed to 0, when
the read is failed. This makes the retry of the read with
a offset of 0 to read the total object.
Let the extent.length as it is, if the return code is -EAGAIN,
which will make the read try again later with the correct
extent.length.

Fixes: https://tracker.ceph.com/issues/37680
Signed-off-by: Xiaofei Cui <cuixiaofei@sangfor.com.cn>
(cherry picked from commit fd5d2d6d6eb39151d6d96105e83bfd39749d79d5)
src/osd/PrimaryLogPG.cc