Only disable quotas on the primary cluster (#25439)

* Only disable quotas on the primary cluster

* add changelog
This commit is contained in:
Josh Black 2024-02-28 13:36:28 -08:00 committed by GitHub
parent 9f8ddae96f
commit e0b1b87ca6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

3
changelog/25439.txt Normal file
View file

@ -0,0 +1,3 @@
```release-note:bug
core/quotas: Deleting a namespace that contains a rate limit quota no longer breaks replication
```

View file

@ -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