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

Potential race condition in SinkIndex #30

Open
KyleMaas opened this issue Jan 24, 2023 · 0 comments
Open

Potential race condition in SinkIndex #30

KyleMaas opened this issue Jan 24, 2023 · 0 comments

Comments

@KyleMaas
Copy link

(Trying to keep track of some of the things I'm finding so I can remember to look at them later.)

This section should probably be wrapped in a mutex:

err := idx.f(ctx, tv.Seq(), tv.Value(), idx.idx)
if err != nil {
return fmt.Errorf("error calling setter func: %w", err)
}
err = idx.idx.SetSeq(tv.Seq())
if err != nil {
return fmt.Errorf("error setting sequence number: %w", err)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant