]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: don't add metadata to session close message 30843/head
authorYan, Zheng <zyan@redhat.com>
Wed, 18 Dec 2019 09:01:23 +0000 (17:01 +0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 27 Jan 2020 12:48:12 +0000 (13:48 +0100)
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>
(cherry picked from commit de2f57b4704e6e23ed27f531b6f6f3b825b9355f)

Conflicts:
        src/mds/Server.cc
- nautilus uses "MClientSession::create" instead of "make_message"

src/mds/Server.cc

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