Skip to content

Commit

Permalink
Only disable quotas on the primary cluster (#25439)
Browse files Browse the repository at this point in the history
* Only disable quotas on the primary cluster

* add changelog
  • Loading branch information
raskchanky authored Feb 28, 2024
1 parent 9f8ddae commit e0b1b87
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 @@ -953,7 +953,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 e0b1b87

Please sign in to comment.