Skip to content

Potential race condition in SinkIndex #30

@KyleMaas

Description

@KyleMaas

(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)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions