Skip to content

Commit

Permalink
Merge 1ef5211 into backport/wal-delete-bug/vastly-grown-llama
Browse files Browse the repository at this point in the history
  • Loading branch information
hc-github-team-secure-vault-core committed Aug 11, 2022
2 parents c15b1ce + 1ef5211 commit fb2158f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/logical/database/rotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ func (b *databaseBackend) initQueue(ctx context.Context, conf *logical.BackendCo
}

walID, err := framework.PutWAL(ctx, conf.StorageView, staticWALKey, &setCredentialsWAL{RoleName: "vault-readonlytest"})
if walID != "" {
if walID != "" && err == nil {
defer framework.DeleteWAL(ctx, conf.StorageView, walID)
}
switch {
Expand Down
3 changes: 3 additions & 0 deletions changelog/16686.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
secrets/database: Fix a bug where the secret engine would queue up a lot of WAL deletes during startup.
```

0 comments on commit fb2158f

Please sign in to comment.