]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: refresh rstat for quota check of rename 37310/head
authorYan, Zheng <zyan@redhat.com>
Tue, 22 Sep 2020 12:31:08 +0000 (20:31 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 22 Sep 2020 12:31:08 +0000 (20:31 +0800)
Fixes: https://tracker.ceph.com/issues/47224
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/client/Client.cc

index 145a1c02e290c44af146f682be7e7ff3eb7eabd1..fa62552ccd1d47cda6692780a8b47958bcff7ccb 100755 (executable)
@@ -6568,7 +6568,7 @@ int Client::_lookup(Inode *dir, const string& dname, int mask, InodeRef *target,
   int r = 0;
   Dentry *dn = NULL;
   // can only request shared caps
-  mask &= CEPH_CAP_ANY_SHARED;
+  mask &= CEPH_CAP_ANY_SHARED | CEPH_STAT_RSTAT;
 
   if (dname == "..") {
     if (dir->dentries.empty()) {