-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db: ensure Open closes opened directories on error
Previously, there were handful of places where an open directory was leaked if Open returned an error. These were discovered by CockroachDB's goroutine leak detector while bumping Pebble to include d79f961. The goroutine created by OpenDir was never being closed.
- Loading branch information
Showing
2 changed files
with
155 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters