]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
OSD: fix an osdmap_subscribe interface misuse
authorGreg Farnum <greg@inktank.com>
Thu, 15 May 2014 23:50:43 +0000 (16:50 -0700)
committerSage Weil <sage@inktank.com>
Mon, 19 May 2014 23:39:19 +0000 (16:39 -0700)
commit5c8afaa8861345efbcc5488e0336327a8a38d3bc
tree8dea4f6dc8552f17d28fbd403a532b7a65a36e0e
parenteb98f4ab3a27aa8e00e0eb7e504ca7bec7c48a06
OSD: fix an osdmap_subscribe interface misuse

When calling osdmap_subscribe, you have to pass an epoch newer than the
current map's. _maybe_boot() was not doing this correctly -- we would
fail a check for being *in* the monitor's existing map range, and then
pass along the map prior to the monitor's range. But if we were exactly
one behind, that value would be our current epoch, and the request would
get dropped. So instead, make sure we are not *in contact* with the monitor's
existing map range.

Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit 290ac818696414758978b78517b137c226110bb4)
src/osd/OSD.cc