Skip to content

Commit

Permalink
Merge PR ceph#37310 into master
Browse files Browse the repository at this point in the history
* refs/pull/37310/head:
	client: refresh rstat for quota check of rename

Reviewed-by: Patrick Donnelly <[email protected]>
  • Loading branch information
batrick committed Sep 23, 2020
2 parents 45d280c + 2e536cd commit e089ff7
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 e089ff7

Please sign in to comment.