Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
miagilepner committed Jan 9, 2025
1 parent 048b760 commit b45d134
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vault/identity_store_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b45d134

Please sign in to comment.