]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: fix negative degraded objects during backfilling 4021/head
authorGuang Yang <yguang@yahoo-inc.com>
Thu, 26 Feb 2015 08:13:12 +0000 (08:13 +0000)
committerSage Weil <sage@redhat.com>
Mon, 16 Mar 2015 23:25:46 +0000 (16:25 -0700)
commit63b39dbd529936e60d0fd08dffd35f82b3d1729c
treef3cf628c952793e2bcc3659ef37103b15d10ed04
parent493d285508914769cba3639b601ae6c20303af0d
osd: fix negative degraded objects during backfilling

When there is deleting requests during backfilling, the reported number of degraded
objects could be negative, as the primary's num_objects is the latest (locally) but
the number for replicas might not reflect the deletings. A simple fix is to ignore
the negative subtracted value.

Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
(cherry picked from commit 14d7e36d3c978844da73d0e1c8a3a1ec863bac15)

Conflicts:
src/osd/PG.cc
src/osd/PG.cc