]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: fix map subscription in YOU_DIED osd_ping handler 1608/head
authorSage Weil <sage@inktank.com>
Sun, 6 Apr 2014 23:03:50 +0000 (16:03 -0700)
committerSage Weil <sage@inktank.com>
Sun, 6 Apr 2014 23:03:50 +0000 (16:03 -0700)
commit4ea9e4818f05c4883f4cbb9a27f3fef0b3fd3dae
tree0c56cde21fc49ad31b2dfd74daeeec3977cf0e95
parent6a4c50d7f27d2e7632d8c017d09e864e969a05f7
osd: fix map subscription in YOU_DIED osd_ping handler

If we have epoch X and find out we died as of epoch Y, we still want to
request X+1.  Among other things, this fixes a 'stall' if Y happens to be
the most recent map published and no new maps are generated because we will
never get anything back from our subscription.

This makes this osdmap_subscribe() caller match every other caller by
passing in current epoch + 1.

Fixes: #8002
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSD.cc