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: v14.0.1~327^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fa1c2be4a93da46252a0b53776696baf80840700;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 --- diff --git a/src/client/Client.cc b/src/client/Client.cc index f9fa8bcdf23f..9691d8b4f128 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -3938,7 +3938,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;