From: Peng Xie Date: Sun, 26 Aug 2018 14:02:28 +0000 (+0800) Subject: client:two ceph-fuse client, one can not list out files created by another. X-Git-Tag: v13.2.3~120^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e8c0b21ba074743f6d2235ba0b437e45d93e291e;p=ceph.git client:two ceph-fuse client, one can not list out files created by another. the problem happend after mds restored the stale client session, right after one normal client created files under one specific dir,while the restored client can not list out the just created files. Fixes: http://tracker.ceph.com/issues/27051 Signed-off-by: Peng Xie (cherry picked from commit fa1c2be4a93da46252a0b53776696baf80840700) --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 910e44d32e18..bc17e944aa2a 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -3932,7 +3932,7 @@ void Client::add_update_cap(Inode *in, MetaSession *mds_session, uint64_t cap_id unsigned old_caps = cap.issued; cap.cap_id = cap_id; - cap.issued |= issued; + cap.issued = issued; cap.implemented |= issued; cap.seq = seq; cap.issue_seq = seq;