Skip to content

Conversation

drmingdrmer
Copy link
Member

Changelog

BumpVer: 0.2.2
feat: add MatchSeq to assert seq

MatchSeq specifies the sequence number condition that an operation
must satisfy to take effect.

In distributed systems, each value stored in the system has an
associated sequence number (seq) that represents its version.
MatchSeq provides a way to express conditional operations based on
these sequence numbers:

  • Match any sequence number (unconditional operation)
  • Match an exact sequence number (compare-and-swap operations)
  • Match sequence numbers greater than or equal to a value (update
    existing entries)

This is essential for implementing optimistic concurrency control and
ensuring consistency in distributed environments.


@drmingdrmer drmingdrmer marked this pull request as ready for review March 16, 2025 04:08
`MatchSeq` specifies the sequence number condition that an operation
must satisfy to take effect.

In distributed systems, each value stored in the system has an
associated sequence number (`seq`) that represents its version.
`MatchSeq` provides a way to express conditional operations based on
these sequence numbers:

- Match any sequence number (unconditional operation)
- Match an exact sequence number (compare-and-swap operations)
- Match sequence numbers greater than or equal to a value (update
  existing entries)

This is essential for implementing optimistic concurrency control and
ensuring consistency in distributed environments.
@drmingdrmer drmingdrmer merged commit a1d933e into databendlabs:main Mar 16, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

1 participant