]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: update MClientReconnect encoding
authorYan, Zheng <zyan@redhat.com>
Tue, 18 Dec 2018 08:22:21 +0000 (16:22 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 14 Feb 2019 03:01:49 +0000 (11:01 +0800)
commitf8c8bbd1ee451f15d74b71073ec1abd6a42743b0
tree3d825845609cb03322ad7ea21008e42b4b358aff
parent6f6e080f4d7adc421da9ecca34a88def780a952e
mds: update MClientReconnect encoding

The old encoding assumes that snaprealms are encoded at the tail of
message payload. So it does not allow adding new fields to the message.
The patch introduce new encoding for MClientReconnect, the new encoding
allows us to extend MClientReconnect.

The new encoding is not compatible with the old encoding. If mds does
not understand the new encoding. client needs to use the old encoding
to encode MClientReconnect.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/client/Client.cc
src/mds/Server.cc
src/mds/mdstypes.cc
src/mds/mdstypes.h
src/messages/MClientReconnect.h