]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: Calculate degraded and misplaced more accurately 14322/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:05:24 +0000 (01:05 +0900)
commitb49a71daf51bf2fdd892cbfc033c0760cbce0464
treef0850dc36062cca710b678bbe65666cb809ca919
parentce8edcfed6cd908779efd229202eab1232d16f1c
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