From 486a9ca67bae44607614c8ace8cc7c1afebdeae6 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Wed, 9 Jan 2019 14:35:40 -0800 Subject: [PATCH] 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 --- src/client/Client.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/client/Client.cc b/src/client/Client.cc index 6a107c35e1d73..9158f2586ef63 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)) -- 2.39.5