]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: fix stat sum update of recovery pushing 13328/head
authorZhiqiang Wang <zhiqiang@xsky.com>
Wed, 8 Feb 2017 07:32:32 +0000 (15:32 +0800)
committerZhiqiang Wang <zhiqiang@xsky.com>
Thu, 9 Feb 2017 02:58:26 +0000 (10:58 +0800)
commit2e8095052145eb178209002510db9544a97d3798
treed13c926a139bcc9dd0e854e8e465bf4cc24cab14
parentd25b3550dae243f6868a526632e97405866e76d4
osd: fix stat sum update of recovery pushing

Use the stat field of PushInfo to do the stat update, which is
more accurate, especially in the case of sparse file. Also,
remove the stat sum update in on_peer_recover, which is done in
on_global_recover.

Signed-off-by: Zhiqiang Wang <zhiqiang@xsky.com>
src/osd/ECBackend.cc
src/osd/PGBackend.h
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h
src/osd/ReplicatedBackend.cc