mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
Only disable quotas on the primary cluster (#25439)
* Only disable quotas on the primary cluster * add changelog
This commit is contained in:
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)
|
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 {
|
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)
|
c.logger.Error("failed to update quotas after disabling mount", "path", path, "error", err)
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user