]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: remove unneeded layout on MClientCaps 11790/head
authorJohn Spray <john.spray@redhat.com>
Fri, 4 Nov 2016 16:48:26 +0000 (16:48 +0000)
committerJohn Spray <john.spray@redhat.com>
Fri, 4 Nov 2016 16:48:26 +0000 (16:48 +0000)
This field is needed by the client when it
receives an MClientCaps from the server, but
it is never read on the serevr when set by
the client.

This change is aimed at making the code easier
to understand by removing something redundant (it's
not a performance optimisation!)

Signed-off-by: John Spray <john.spray@redhat.com>
src/client/Client.cc

index 2ad844266df1c0cdbe2e39d5a10ddaec1df8c629..d741528a2c52a6717ac564f4732b85e5ee660a59 100644 (file)
@@ -3250,7 +3250,6 @@ void Client::send_cap(Inode *in, MetaSession *session, Cap *cap,
     m->head.xattr_version = in->xattr_version;
   }
   
-  m->set_layout(in->layout);
   m->size = in->size;
   m->max_size = in->max_size;
   m->truncate_seq = in->truncate_seq;