Skip to content

Commit

Permalink
Merge pull request #1595 from ydb-platform/fix-session-close-log
Browse files Browse the repository at this point in the history
update session status only after logging it
  • Loading branch information
asmyasnikov authored Dec 23, 2024
2 parents e827ec1 + f3de353 commit ee17f9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Fixed an error in logging session deletion events

## v3.95.3
* Supported of `database/sql/driver.Valuer` interfaces for params which passed to query using sql driver
* Exposed `credentials/credentials.OAuth2Config` OAuth2 config
Expand Down
2 changes: 1 addition & 1 deletion internal/table/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ func (s *session) Close(ctx context.Context) (err error) {
s,
)
defer func() {
s.SetStatus(table.SessionClosed)
onDone(err)
s.SetStatus(table.SessionClosed)
}()

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

0 comments on commit ee17f9a

Please sign in to comment.