Skip to content

Commit

Permalink
Invalidate the negative cache
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Hagemeier <[email protected]>
  • Loading branch information
c-hagem committed Jan 30, 2025
1 parent b8338af commit db09a8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mountpoint-s3/src/superblock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,8 @@ impl Superblock {
let inode = self
.inner
.create_inode_locked(&parent_inode, &mut parent_state, name, kind, state, true)?;
// Expel inode from negative cache, if it is present
self.inner.negative_cache.remove(parent_inode.ino(), name);
LookedUp { inode, stat }
};

Expand Down

0 comments on commit db09a8b

Please sign in to comment.