]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: don't spew spurious scrub unreserve messages
authorSamuel Just <samuel.just@dreamhost.com>
Wed, 29 Jun 2011 22:37:23 +0000 (15:37 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 30 Jun 2011 16:21:25 +0000 (09:21 -0700)
commit2fbba81f6459cdfbc447eab94a984a13ece9d2ac
treef1ad28d7a38c9c6fa0618e6ca76283d2032d9fc3
parent9da44e67f4ed19608a7da3eb94cc4c7d0a50db71
osd: don't spew spurious scrub unreserve messages

The past primary was sending out scrub unreserve messages to all the
non-primary OSDs in the acting set on a PG state change. They're
spurious since the other OSDs will cancel the scrubs themselves
on state change, and they weren't right anyway because the loop
was looking at all the non-primary OSDs and sending out a message,
which could have excluded the new primary (if it was a replica before)
included other OSDs new to the PG, and included the current OSD.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/osd/PG.cc