Skip to content

Commit

Permalink
backport of commit e0b1b87 (#25701)
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Black <[email protected]>
  • Loading branch information
1 parent 9eeac45 commit 17a3dc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/25439.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
core/quotas: Deleting a namespace that contains a rate limit quota no longer breaks replication
```
2 changes: 1 addition & 1 deletion vault/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ func (c *Core) unmountInternal(ctx context.Context, path string, updateStorage b

removePathCheckers(c, entry, viewPath)

if c.quotaManager != nil {
if c.quotaManager != nil && !c.IsPerfSecondary() {
if err := c.quotaManager.HandleBackendDisabling(ctx, ns.Path, path); err != nil {
c.logger.Error("failed to update quotas after disabling mount", "path", path, "error", err)
return err
Expand Down

0 comments on commit 17a3dc2

Please sign in to comment.