]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/PrimaryLogPG: fix SPARSE_READ stat
authorYan Jun <yan.jun8@zte.com.cn>
Fri, 27 Mar 2020 01:49:05 +0000 (09:49 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Fri, 27 Mar 2020 01:49:35 +0000 (09:49 +0800)
commit528fb95326e76518e93fe43274f7a8e86049851d
treec6c065d8e8c7445a3f5bc985897673218719b433
parent3ee082218cdc1e5bca6f5c10b26b089353653b68
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>
src/osd/PrimaryLogPG.cc