]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: repeer osd if prior set may be affected
authorSage Weil <sage@newdream.net>
Tue, 4 Nov 2008 21:49:18 +0000 (13:49 -0800)
committerSage Weil <sage@newdream.net>
Tue, 4 Nov 2008 21:49:18 +0000 (13:49 -0800)
commitab3dc66ced01de2e5cc769a8582083c0150e6267
tree97ecb35c634a39656bfe8276a5ad631b399ee7f7
parent41eefe8d89cec1d5fcb6be4cc6d3f1aa4fcbfba2
osd: repeer osd if prior set may be affected

Previously we only repeered if the active set changed.  However, changes
in the up/down state of the prior set (or prior set candidates) or the
primary osd's up_thru can also affect the prior set and peering.

This fixes the problem where PGs get stuck in a "crashed" state without
moving to "crashed+replay".  We sit and wait for info from a peer who
we thought was up but is now down, or vice-versa.
src/osd/OSD.cc
src/osd/PG.cc
src/osd/PG.h