Skip to content

Commit

Permalink
test: adds additional test coverage for WAL rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
austingebauer committed Apr 20, 2020
1 parent e15c154 commit 9b216ae
Show file tree
Hide file tree
Showing 3 changed files with 322 additions and 54 deletions.
4 changes: 2 additions & 2 deletions builtin/logical/database/rollback.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ func (b *databaseBackend) walRollback(ctx context.Context, req *logical.Request,

// Attempt to get a connection with the current configuration.
// If successful, the WAL entry can be deleted. This means
// the root credentials according to the database and storage
// are the same.
// the root credentials are the same according to the database
// and storage.
_, err = b.GetConnection(ctx, req.Storage, entry.ConnectionName)
if err == nil {
return nil
Expand Down
Loading

0 comments on commit 9b216ae

Please sign in to comment.