From: Patrick Donnelly Date: Wed, 9 Jan 2019 22:35:40 +0000 (-0800) Subject: client: do not clear message payload X-Git-Tag: v14.1.0~389^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=486a9ca67bae44607614c8ace8cc7c1afebdeae6;p=ceph.git client: do not clear message payload We don't send the message back to the MDS and modifying the incoming message is evil; it should be treated const. Signed-off-by: Patrick Donnelly --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 6a107c35e1d7..9158f2586ef6 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -4817,8 +4817,6 @@ void Client::handle_caps(MClientCaps *m) got_mds_push(session); - m->clear_payload(); // for if/when we send back to MDS - Inode *in = 0; vinodeno_t vino(m->get_ino(), CEPH_NOSNAP); if (inode_map.count(vino))