]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: fix negative degraded objects during backfilling
authorGuang Yang <yguang@yahoo-inc.com>
Thu, 26 Feb 2015 08:13:12 +0000 (08:13 +0000)
committerSage Weil <sage@redhat.com>
Thu, 9 Apr 2015 17:40:15 +0000 (10:40 -0700)
commit93c8f436a4f84ac8088e1a1de82350dd33c68d64
tree622f797ae2ea7e9c751013e0b96d29fe2047dde9
parente61c4f093f88e44961d157f65091733580cea79a
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)
src/osd/PG.cc