Skip to content

Commit

Permalink
db: fix missing close in TestOverlappingIngestedSSTs
Browse files Browse the repository at this point in the history
We don't reset `closed` which can lead to the DB not being closed.
Surprisingly, the finalizers did not detect this issue (except in
crl-release-23.1).
  • Loading branch information
RaduBerinde committed Jul 29, 2024
1 parent d320970 commit f8e117d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ingest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ func TestOverlappingIngestedSSTs(t *testing.T) {
var err error
d, err = Open(dir, opts)
require.NoError(t, err)
closed = false
d.TestOnlyWaitForCleaning()
}
waitForFlush := func() {
Expand Down

0 comments on commit f8e117d

Please sign in to comment.