]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/PGMonitor: reliably mark PGs state 8089/head
authorSage Weil <sage@redhat.com>
Mon, 14 Mar 2016 15:17:02 +0000 (11:17 -0400)
committerSage Weil <sage@redhat.com>
Mon, 14 Mar 2016 15:17:02 +0000 (11:17 -0400)
commit26d4f2e11d68560a3c87c41a98e3ed5d9067eeb0
tree545aa663e1849669a650669e0b208ed222ca005d
parentaf0e063576e3925a2ad04e2d48ccc65237d83a03
mon/PGMonitor: reliably mark PGs state

In beb99d708a5051405a32f46fc10cef473bfddce3 we partially addressed
the case where a acting_primary update raced with an attemp to
mark the pg state.  However, if the acting_primary changed, we
didn't check the new acting_primary to ensure that it is also
down and we should still mark things stale.

Also, printing out the acting_primary aids debugging.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/PGMonitor.cc
src/mon/PGMonitor.h