From e0b1b87ca684425a38855ac2cbd4436b7945a406 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Wed, 28 Feb 2024 13:36:28 -0800 Subject: [PATCH] Only disable quotas on the primary cluster (#25439) * Only disable quotas on the primary cluster * add changelog --- 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 0000000000..7b1775c9b9 --- /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 bc61936929..42bfbde68d 100644 --- a/vault/mount.go +++ b/vault/mount.go @@ -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