From fa1c2be4a93da46252a0b53776696baf80840700 Mon Sep 17 00:00:00 2001 From: Peng Xie Date: Sun, 26 Aug 2018 22:02:28 +0800 Subject: [PATCH] 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 --- src/client/Client.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3