Updating mseq makes client think importer mds has accepted all prior
cap messages and importer mds knows what caps client wants. Actually
some cap messages may have been dropped because of mseq mismatch.
If mseq is left untouched, importing caps' mds_wanted later will get
reset by cap import message.
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Fixes: http://tracker.ceph.com/issues/37464
(cherry picked from commit
d308b54db57591eff6a5e17dfc6c385156a79f53)
Conflicts:
src/client/Client.cc : Resolved in handle_cap_export
tcap->cap_id = m->peer.cap_id;
tcap->seq = m->peer.seq - 1;
tcap->issue_seq = tcap->seq;
- tcap->mseq = m->peer.mseq;
tcap->issued |= cap->issued;
tcap->implemented |= cap->issued;
if (cap == in->auth_cap)