]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: do not clear message payload
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 9 Jan 2019 22:35:40 +0000 (14:35 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 9 Jan 2019 22:59:17 +0000 (14:59 -0800)
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 <pdonnell@redhat.com>
src/client/Client.cc

index 6a107c35e1d73411576e6f89133139c50e5cc858..9158f2586ef63f7f2b2765fb46bfa09269d1a96a 100644 (file)
@@ -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))