From 17a3dc2785c8da25d1c2b21adc14904a9bb7631c Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Wed, 28 Feb 2024 17:05:49 -0500 Subject: [PATCH] backport of commit e0b1b87ca684425a38855ac2cbd4436b7945a406 (#25701) Co-authored-by: Josh Black --- changelog/25439.txt | 3 +++ vault/mount.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelog/25439.txt 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