Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

* Fixed nil pointer dereference panic on failed ydb.Open #1486

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
* Added ip discovery. Server can show own ip address and target hostname in the ListEndpoint message. These fields are used to bypass DNS resolving.
* Fixed nil pointer dereference panic on failed `ydb.Open`
* Added ip discovery. Server can show own ip address and target hostname in the ListEndpoint message. These fields are used to bypass DNS resolving.

## v3.81.0
* Added error ErrMessagesPutToInternalQueueBeforeError to topic writer
Expand Down
4 changes: 3 additions & 1 deletion driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ func Open(ctx context.Context, dsn string, opts ...Option) (_ *Driver, _ error)
}()

if err = d.connect(ctx); err != nil {
_ = d.pool.Release(ctx)
if d.pool != nil {
_ = d.pool.Release(ctx)
}

return nil, xerrors.WithStackTrace(err)
}
Expand Down
Loading