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

fix: warp concurrent crash on PUT #354

Merged
merged 1 commit into from
Dec 23, 2024
Merged
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
11 changes: 11 additions & 0 deletions pkg/bench/put.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,18 @@ func (u *Put) Start(ctx context.Context, wait chan struct{}) (Operations, error)
go func(i int) {
rcv := c.Receiver()
defer wg.Done()

// Copy usermetadata and usertags per concurrent thread.
opts := u.PutOpts
opts.UserMetadata = make(map[string]string, len(u.PutOpts.UserMetadata))
opts.UserTags = make(map[string]string, len(u.PutOpts.UserTags))
for k, v := range u.PutOpts.UserMetadata {
opts.UserMetadata[k] = v
}
for k, v := range u.PutOpts.UserTags {
opts.UserTags[k] = v
}
harshavardhana marked this conversation as resolved.
Show resolved Hide resolved

done := ctx.Done()

<-wait
Expand Down
Loading