]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: fix the extent length error of the sync read 25584/head
authorXiaofei Cui <cuixiaofei@sangfor.com.cn>
Mon, 17 Dec 2018 08:56:59 +0000 (16:56 +0800)
committerXiaofei Cui <cuixiaofei@sangfor.com.cn>
Tue, 18 Dec 2018 03:12:04 +0000 (11:12 +0800)
commitfd5d2d6d6eb39151d6d96105e83bfd39749d79d5
tree0c8a5a9b3e9a2b42ea99e385078e28aad26c14e8
parent2efb9ce8a2ec7c23ac55f54711b6d45138037bf7
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>
src/osd/PrimaryLogPG.cc