]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: periodically request newer map from mon if waiting peering events
authorSage Weil <sage@redhat.com>
Mon, 12 Mar 2018 14:16:12 +0000 (09:16 -0500)
committerSage Weil <sage@redhat.com>
Wed, 4 Apr 2018 13:26:58 +0000 (08:26 -0500)
commit0e6db5e320f78dc2b53a6ed6738b42b0f8432d70
tree61ac4e4d0d692c42d21124358c4d6408a8f79e15
parent740b7809af540b4f3fe0cd3c0f05d5a25633ee0c
osd: periodically request newer map from mon if waiting peering events

If we have peering events waiting on a newer map than we have, request it
from the mon.  Do this periodically in tick so that we normally wait to get
it from a peer first.

This avoids a deadlock situation where we are, say, waiting for a newer
map to create a pg or but do not ever get the map to do it (because the
cluster is idle).

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