]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client:two ceph-fuse client, one can not list out files created by another. 23691/head
authorPeng Xie <peng.hse@xtaotech.com>
Sun, 26 Aug 2018 14:02:28 +0000 (22:02 +0800)
committerPeng Xie <peng.hse@xtaotech.com>
Sun, 26 Aug 2018 14:06:42 +0000 (22:06 +0800)
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 <peng.hse@xtaotech.com>
src/client/Client.cc

index f9fa8bcdf23fad662b8ecbcf6856ae1eb4f2795a..9691d8b4f128f46633fca3efd2075dbcfe2d09ce 100644 (file)
@@ -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;