diff --git a/changelog/25439.txt b/changelog/25439.txt new file mode 100644 index 000000000000..7b1775c9b996 --- /dev/null +++ b/changelog/25439.txt @@ -0,0 +1,3 @@ +```release-note:bug +core/quotas: Deleting a namespace that contains a rate limit quota no longer breaks replication +``` diff --git a/vault/mount.go b/vault/mount.go index 0c617509b2dc..df5942087146 100644 --- a/vault/mount.go +++ b/vault/mount.go @@ -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