Originally, the last_sent sequence from the MDS was sent by the client during
bulk cap release but it was shortly after changed to the last_issue which is
the sequence number that the cap was originally "issued" by the MDS rank (which
may be updated after import of caps).
Fixes: 6208f57f487ac170df24a9018f1cc87a5ac8b4b3
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
655cddb7c9f32c9dd9cddf40ac17f385d539c8f9)
ceph_mds_cap_item i;
i.ino = ino;
i.cap_id = cap_id;
- i.seq = iseq;
+ i.issue_seq = iseq;
i.migrate_seq = mseq;
release->caps.push_back(i);
}
struct ceph_mds_cap_item {
__le64 ino;
__le64 cap_id;
- __le32 migrate_seq, seq;
+ __le32 migrate_seq, issue_seq;
} __attribute__ ((packed));
#define CEPH_MDS_LEASE_REVOKE 1 /* mds -> client */
Session *session = mds->get_session(m);
for (const auto &cap : m->caps) {
- _do_cap_release(client, inodeno_t((uint64_t)cap.ino) , cap.cap_id, cap.migrate_seq, cap.seq);
+ _do_cap_release(client, inodeno_t((uint64_t)cap.ino) , cap.cap_id, cap.migrate_seq, cap.issue_seq);
}
if (session) {