]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/async/ProtocolV2: assume peer has SERVER_NAUTILUS for encoding v2 frame 26435/head
authorSage Weil <sage@redhat.com>
Thu, 14 Feb 2019 19:44:43 +0000 (13:44 -0600)
committerSage Weil <sage@redhat.com>
Thu, 14 Feb 2019 19:44:48 +0000 (13:44 -0600)
commit25951a9672ef53c3b8c59d38d6777f2c619f0f06
treee88fbf80ef7e00d27717dc3c8f34739b2baac19c
parent4dfd718225e12ba887e58144f88239d5ba280526
msg/async/ProtocolV2: assume peer has SERVER_NAUTILUS for encoding v2 frame

The v2 frames may contain entity_addr_t and entity_addrvec_t.  Those have
been understood since the MSG_ADDR2 feature, but with nautilus we've
additionally added the TYPE_ANY, and we encode TYPE_ANY addrs as
TYPE_LEGACY when the peer lacks SERVER_NAUTILUS.

For the purposes of the v2 protocol, we assume the peer understands
TYPE_ANY.

No other complex types are used in the v2 frame protocol, so this has no
effect on, e.g., what features we assume the peer has for the purposes
of encoding actual messages.

Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/async/ProtocolV2.cc