]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client:two ceph-fuse client, one can not list out files created by another. 24282/head
authorPeng Xie <peng.hse@xtaotech.com>
Sun, 26 Aug 2018 14:02:28 +0000 (22:02 +0800)
committerPrashant D <pdhange@redhat.com>
Tue, 25 Sep 2018 23:14:58 +0000 (19:14 -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)

Conflicts:
src/client/Client.cc : Resolved for cap.issued

src/client/Client.cc

index aacc68f1fd338d0d2f3d9b48a77c11679012206b..ebaf10ec135f57ee3a80e8be9ae56028a9fa0a8c 100644 (file)
@@ -3940,7 +3940,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;