Skip to content

Commit

Permalink
Merge pull request #452 from aerospike/stage
Browse files Browse the repository at this point in the history
Go Client v7.7.1
  • Loading branch information
khaf authored Sep 23, 2024
2 parents 9e009f0 + 751ae9d commit 63370c8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change History

## September 18 2024: v7.7.1

Hot Fix release. This version fixes a major bug introduced in v7.7.0. You should use this release instead.

- **Fixes**
- [CLIENT-3122] Fix `nil` dereference in the tend logic.

## September 13 2024: v7.7.0

Minor improvement release.
Expand Down Expand Up @@ -51,7 +58,7 @@
- **Improvements**
- [CLIENT-2997] Scans should work in a mixed cluster of v5.7 and v6.4 server nodes.
- [CLIENT-3020] Change `ReadModeSC` doc from server to client perspective.

- **Fixes**
- [CLIENT-3019] Prevent Goroutine leak in `AuthInterceptor` for the Proxy Client.

Expand Down
5 changes: 4 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)

retract v7.3.0 // `Client.BatchGetOperate` issue
retract (
v7.3.0 // `Client.BatchGetOperate` issue
v7.7.0 // nil deref in tend logic
)
10 changes: 4 additions & 6 deletions internal/seq/seq.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ func ParDo[T any](seq []T, f func(T)) {
wg := new(sync.WaitGroup)
wg.Add(len(seq))
for i := range seq {
go func() {
go func(t T) {
defer wg.Done()
f(seq[i])
}()
f(t)
}(seq[i])
}
wg.Wait()
}
Expand Down Expand Up @@ -77,8 +77,6 @@ func Clone[T any](seq []T) []T {
}

res := make([]T, len(seq))
for i := range seq {
res[i] = seq[i]
}
copy(res, seq)
return res
}

0 comments on commit 63370c8

Please sign in to comment.