From b45d13469f740784cb69759ecbf9843bb7e85d62 Mon Sep 17 00:00:00 2001 From: Mia Epner Date: Thu, 9 Jan 2025 14:46:50 +0100 Subject: [PATCH] lint --- vault/identity_store_util.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vault/identity_store_util.go b/vault/identity_store_util.go index de437a3414b3..aed83228a7ae 100644 --- a/vault/identity_store_util.go +++ b/vault/identity_store_util.go @@ -31,6 +31,7 @@ import ( var ( errCycleDetectedPrefix = "cyclic relationship detected for member group ID" tmpSuffix = ".tmp" + entityLoadingTxMaxSize = 1024 ) func (c *Core) loadIdentityStoreArtifacts(ctx context.Context) error { @@ -503,7 +504,7 @@ LOOP: } toBeUpserted := 1 + len(entity.Aliases) - if upsertedItems+toBeUpserted > 1024 { + if upsertedItems+toBeUpserted > entityLoadingTxMaxSize { tx.Commit() upsertedItems = 0 tx = i.db.Txn(true)