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>
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;
}