mds: avoid issuing zero caps to client

make sure CEPH_CAP_PIN exists in stale caps.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
This commit is contained in:
Yan, Zheng 2014-03-04 16:46:57 +08:00
parent e909eaf203
commit ed30b83a9a

View File

@ -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