mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-18 18:38:08 -05:00
Only disable quotas on the primary cluster (#25439)
* Only disable quotas on the primary cluster * add changelog
This commit is contained in:
parent
9f8ddae96f
commit
e0b1b87ca6
2 changed files with 4 additions and 1 deletions
3
changelog/25439.txt
Normal file
3
changelog/25439.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
core/quotas: Deleting a namespace that contains a rate limit quota no longer breaks replication
|
||||
```
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue