]> git-server-git.apps.pok.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>
Sat, 9 Aug 2014 05:59:09 +0000 (22:59 -0700)
commitf86bf1d8beb64fb2ccc221033a2533219a433c3c
tree6d2b98fffb9f2ea1e62e7e43f0fd1b065883b72e
parent790f4c2345161e9f6c2104dc1dce17b1a36cfa48
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