]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
OSD: allow project_pg_history to handle a missing map
authorSamuel Just <sam.just@inktank.com>
Mon, 4 Nov 2013 05:02:36 +0000 (21:02 -0800)
committerSamuel Just <sam.just@inktank.com>
Mon, 4 Nov 2013 19:08:31 +0000 (11:08 -0800)
commitcd0d612e1abdf5c87082eeeccd4ca09dd14fd737
tree929dd91207c95d4a84a4f50ce0457b483f056897
parent9ab513334c7ff9544bac07bd420c6d5d200cf535
OSD: allow project_pg_history to handle a missing map

If we get a peering message for an old map we don't have, we
can throwit out: the sending OSD will learn about the newer
maps and update itself accordingly, and we don't have the
information to know if the message is valid. This situation
can only happen if the sender was down for a long enough time
to create a map gap and its PGs have not yet advanced from
their boot-up maps to the current ones, so we can rely on it

Fixes: #6712
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
src/osd/OSD.cc
src/osd/OSD.h