]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: fix negative degraded objects during backfilling 3803/head
authorGuang Yang <yguang@yahoo-inc.com>
Thu, 26 Feb 2015 08:13:12 +0000 (08:13 +0000)
committerGuang Yang <yguang@yahoo-inc.com>
Thu, 26 Feb 2015 08:13:12 +0000 (08:13 +0000)
commit14d7e36d3c978844da73d0e1c8a3a1ec863bac15
treea203205ac715282e8a4e2b18920a5c4653e9cdff
parent3a1520ba35ddad72aa376c977e926b8cd3f77964
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>
src/osd/PG.cc