]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: don't add metadata to session close message 32318/head
authorYan, Zheng <zyan@redhat.com>
Wed, 18 Dec 2019 09:01:23 +0000 (17:01 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 19 Dec 2019 01:46:30 +0000 (09:46 +0800)
Old version kclient does not recognize session message with metatda.

Fixes: https://tracker.ceph.com/issues/43336
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/Server.cc

index 60401669812ec1a7158f0c5c971db7e941063012..3937f7c7c432afb299c86d53357a184a99d5295b 100644 (file)
@@ -1303,7 +1303,6 @@ void Server::handle_client_reconnect(const cref_t<MClientReconnect> &m)
   if (!session->is_open()) {
     dout(0) << " ignoring msg from not-open session" << *m << dendl;
     auto reply = make_message<MClientSession>(CEPH_SESSION_CLOSE);
-    reply->metadata["error_string"] = "session is not open";
     mds->send_message(reply, m->get_connection());
     return;
   }