From: Yan, Zheng Date: Tue, 4 Mar 2014 08:46:57 +0000 (+0800) Subject: mds: avoid issuing zero caps to client X-Git-Tag: v0.79~111^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ed30b83a9a973da116edc7bc87cb1ade5b6a9685;p=ceph.git mds: avoid issuing zero caps to client make sure CEPH_CAP_PIN exists in stale caps. Signed-off-by: Yan, Zheng --- diff --git a/src/mds/Capability.h b/src/mds/Capability.h index 7e04de0bd20e..c105a38fe13d 100644 --- a/src/mds/Capability.h +++ b/src/mds/Capability.h @@ -311,7 +311,7 @@ public: issue(newpending); last_issue_stamp = other.last_issue_stamp; } else { - inc_last_seq(); + issue(CEPH_CAP_PIN); } client_follows = other.client_follows; @@ -330,7 +330,7 @@ public: else issue(newpending); } else { - inc_last_seq(); + issue(CEPH_CAP_PIN); } // wanted