]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: fix SPARSE_READ stat 34809/head
authorYan Jun <yan.jun8@zte.com.cn>
Fri, 27 Mar 2020 01:49:05 +0000 (09:49 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 28 Apr 2020 17:50:55 +0000 (19:50 +0200)
commit1b63b0f496433adcc8756d3e839f4d9e5ad8af1a
treeffdc1dac96e80c0d855f0640d53b4e1eaa759dbe
parentfcb0536921a652f58e87fc2b3304d30b9d6253c0
osd/PrimaryLogPG: fix SPARSE_READ stat

22960192 use readv to reimplement SPARSE_READ, however it is
still using total_read to accumulate total bytes it reads from
bluestore, which is always zero in code.

Fix by dropping the redundant local total_read counter.
By definition objects_readv_sync should return the correct bytes
it has read. Use that instead.

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
(cherry picked from commit 528fb95326e76518e93fe43274f7a8e86049851d)
src/osd/PrimaryLogPG.cc