]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
OSD: introduce require_up_osd_peer() function for gating replica ops
authorGreg Farnum <greg@inktank.com>
Tue, 22 Jul 2014 23:57:00 +0000 (16:57 -0700)
committerSage Weil <sage@redhat.com>
Tue, 12 Aug 2014 22:25:27 +0000 (15:25 -0700)
commit8d395f1cbbc63f4cd5d166fd0a667938c83f303c
tree859468c0ecda90d5deb7d3b7fe1cfe9598230720
parent72c2474e05b918535047181d876678a6a077aa1d
OSD: introduce require_up_osd_peer() function for gating replica ops

This checks both that a Message originates from an OSD, and that the OSD
is up in the given map epoch.
We use it in handle_replica_op so that we don't inadvertently add operations
from down peers, who might or might not know it.

Signed-off-by: Greg Farnum <greg@inktank.com>
(cherry picked from commit ccd0eec50103b919b3eb6eea96f7dc6438520ed3)
src/osd/OSD.cc
src/osd/OSD.h