Skip to content

Commit f734273

Browse files
authored
Merge branch 'master' into fix_close_item_context
2 parents 3adc8ad + ee17f9a commit f734273

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
* Fixed connections pool leak on closing sessions
2+
* Fixed an error in logging session deletion events
23

34
## v3.95.3
45
* Supported of `database/sql/driver.Valuer` interfaces for params which passed to query using sql driver

internal/table/session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ func (s *session) Close(ctx context.Context) (err error) {
193193
s,
194194
)
195195
defer func() {
196-
s.SetStatus(table.SessionClosed)
197196
onDone(err)
197+
s.SetStatus(table.SessionClosed)
198198
}()
199199

200200
if time.Since(s.LastUsage()) < s.config.IdleThreshold() {

0 commit comments

Comments
 (0)