]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Calculate degraded and misplaced more accurately 14325/head
authorDavid Zafman <dzafman@redhat.com>
Wed, 18 Jan 2017 16:33:40 +0000 (08:33 -0800)
committerShinobu Kinjo <shinobu@redhat.com>
Tue, 4 Apr 2017 16:32:59 +0000 (01:32 +0900)
commitdd25a8f36bef1901f3ce6193cfcbdaf7ab2424a1
tree0d373778606f9dc689d23ac83861451b136b8669
parentc9ece0444611994ddc1292a83e6c091f7773212f
osd: Calculate degraded and misplaced more accurately

Calculate num_object_copies based on the larger of pool size,
up set size and acting set size.

Calculate num_objects_degraded as the difference between num_object_copies
and all copies found on acting set and backfilling up set OSDs.

Calculate num_objects_misplaced as all copies on acting set OSDs not in up set
less copies that have been backfilled to up set OSDs.

Fixes: http://tracker.ceph.com/issues/18619
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 8423bc40759cca137f61e7b755411719a84369d4)
src/osd/PG.cc