]> 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)
committerSage Weil <sage@inktank.com>
Wed, 4 Dec 2013 05:41:35 +0000 (21:41 -0800)
commitbd08d332f5d23b6097a7e8344a6183896b2303a9
tree9d1cc2794c29cebdaf3154fcf0f1106390569958
parent8cd33e3a8ebf7c2aa796ec9f92d6b554c39ff705
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>
(cherry picked from commit cd0d612e1abdf5c87082eeeccd4ca09dd14fd737)
src/osd/OSD.cc
src/osd/OSD.h