From ed30b83a9a973da116edc7bc87cb1ade5b6a9685 Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Tue, 4 Mar 2014 16:46:57 +0800 Subject: [PATCH] mds: avoid issuing zero caps to client make sure CEPH_CAP_PIN exists in stale caps. Signed-off-by: Yan, Zheng --- src/mds/Capability.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mds/Capability.h b/src/mds/Capability.h index 7e04de0bd20e3..c105a38fe13de 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 -- 2.39.5