]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove superfluous cap sequence increment 26472/head
authorYan, Zheng <zyan@redhat.com>
Wed, 13 Feb 2019 09:19:00 +0000 (17:19 +0800)
committerPrashant D <pdhange@redhat.com>
Sun, 17 Feb 2019 23:09:00 +0000 (18:09 -0500)
"cap->issue_norevoke(cap->issued())" was introduced by commit
10b1a5663f5 "mds: share inode max size after MDS recovers".
It is no longer required since commit 77515b7a3c7 "mds: increase
cap sequence when sharing max size"

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit d86287fa3cfaf897041fb179e8f7bc7a8818592b)

src/mds/Locker.cc

index f90df9e0b8bd6974386024079ede958f4885818b..3734302511bb5df35a746a3537b66c54028ba8fe 100644 (file)
@@ -2975,7 +2975,6 @@ void Locker::handle_client_caps(MClientCaps *m)
 
       if (cap->get_last_seq() == 0 &&
          (cap->pending() & (CEPH_CAP_FILE_WR|CEPH_CAP_FILE_BUFFER))) {
-       cap->issue_norevoke(cap->issued());
        share_inode_max_size(in, cap);
       }
     }