]> 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. 24295/head
authorPeng Xie <peng.hse@xtaotech.com>
Sun, 26 Aug 2018 14:02:28 +0000 (22:02 +0800)
committerPrashant D <pdhange@redhat.com>
Wed, 26 Sep 2018 22:49:04 +0000 (18:49 -0400)
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>
(cherry picked from commit fa1c2be4a93da46252a0b53776696baf80840700)

src/client/Client.cc

index 910e44d32e1888f12a74639baf944f1de5220fa7..bc17e944aa2a528e1e41722834a716d67670764c 100644 (file)
@@ -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;