]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Calculate degraded and misplaced more accurately 13031/head
authorDavid Zafman <dzafman@redhat.com>
Wed, 18 Jan 2017 16:33:40 +0000 (08:33 -0800)
committerDavid Zafman <dzafman@redhat.com>
Fri, 20 Jan 2017 19:06:08 +0000 (11:06 -0800)
commit8423bc40759cca137f61e7b755411719a84369d4
tree6ba7aed4874fbe34aafbd6e9df0f192d8a269a10
parentcabb58ea8cbb53487345b5f42ecf2ade4702379b
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>
src/osd/PG.cc