]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson: add Messenger::{set,get}_require_authorizer()
authorKefu Chai <kchai@redhat.com>
Thu, 18 Apr 2019 14:48:01 +0000 (22:48 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 28 Apr 2019 15:23:49 +0000 (23:23 +0800)
commit176db063be3d095340716fb0a2fd4ee64c2edf0b
treeda565e66add095f16a129b11bff1d6274085b431
parent2ff7c1328b43e165f47fb0d42f8565f706ef60db
crimson: add Messenger::{set,get}_require_authorizer()

This flag is used for compatibility with pre-nautilus OSDs, which do not
send authorizers on the OSD heartbeat connections.  However, because the
AuthServer is implemented by MonClient, which is shared across all
OSD messengers, we can't set this to false for the OSD without disabling
all auth.  Instead, make it a Messenger property, and set it only on the
heartbeat server messengers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/net/Messenger.h
src/test/crimson/test_monc.cc