Skip to content

Commit

Permalink
client: refresh rstat for quota check of rename
Browse files Browse the repository at this point in the history
Fixes: https://tracker.ceph.com/issues/47224
Signed-off-by: "Yan, Zheng" <[email protected]>
  • Loading branch information
ukernel committed Sep 22, 2020
1 parent 0a288f6 commit 2e536cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/Client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 2e536cd

Please sign in to comment.