Skip to content

Commit

Permalink
go/libraries/doltcore/env: Close sql-server.lock file after we open i…
Browse files Browse the repository at this point in the history
…t for read.
  • Loading branch information
reltuk committed Nov 9, 2023
1 parent 8eeb38b commit ce592c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/libraries/doltcore/env/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -1228,6 +1228,7 @@ func LoadDBLockFile(fs filesys.Filesys, lockFilePath string) (lock *DBLock, err
if err != nil {
return nil, err
}
defer rd.Close()

b := make([]byte, 256)
n, err := rd.Read(b)
Expand Down

0 comments on commit ce592c4

Please sign in to comment.