]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: discriminate based on connection messenger, not peer type
authorSage Weil <sage@inktank.com>
Mon, 26 Aug 2013 20:58:47 +0000 (13:58 -0700)
committerSage Weil <sage@inktank.com>
Thu, 2 Jan 2014 18:06:59 +0000 (10:06 -0800)
commit4d88dd10bfab4e5fb45632245be5f79eeba73a30
tree9111e153ed5487f62dfb17316e9812bb17b92f4b
parent2354b957b7924af3e81f559d5c975262848c3bf6
osd: discriminate based on connection messenger, not peer type

Replace ->get_source().is_osd() checks and instead see if it is the
cluster_messenger so that we do not confuse ourselves when we get
legit requests from other OSDs on our public interface.

NOTE: backporting this because a mixed cluster may send OSD requests
via the client interface, even though dumpling doesn't do this.

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit a6b04c5d8ba043727a2e39a62e9d4126485bcfeb)

Conflicts:

src/osd/OSD.cc
src/osd/OSD.cc