]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: update recovery stats when the recovery completes 6268/head
authorLoic Dachary <ldachary@redhat.com>
Fri, 16 Oct 2015 17:27:57 +0000 (19:27 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 10 Nov 2015 06:12:11 +0000 (07:12 +0100)
commitae79f1d14cbfe9bc6cfc4d74fb5ea147467f75dd
tree74d3dd08a4a9a306c9b4134a086a19d7db4328d3
parent866d0a0892dcfcb3d636a6fab0da4637e8efb4d1
osd: update recovery stats when the recovery completes

Neither ReplicatedBackend nor ECBackend increments the num_recovered
counter and friends when not doing a local recovery. Pass the stats to
on_global_recover instead so that it's called even if the local copy
didn't need to be recovered.

http://tracker.ceph.com/issues/13453 Fixes: #13453

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/mon/PGMap.cc
src/osd/ECBackend.cc
src/osd/PGBackend.h
src/osd/ReplicatedBackend.cc
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h