]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove superfluous cap sequence increment 26394/head
authorYan, Zheng <zyan@redhat.com>
Wed, 13 Feb 2019 09:19:00 +0000 (17:19 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 13 Feb 2019 09:19:00 +0000 (17:19 +0800)
"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>
src/mds/Locker.cc

index c6c78d217292d5414d3844b74c767b83e4917cb7..5239dd270f0c7b577e8920cb58a0b1f21e230b45 100644 (file)
@@ -2948,7 +2948,6 @@ void Locker::handle_client_caps(const MClientCaps::const_ref &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);
       }
     }