Skip to content

kvstorage/wag: prepare for WAG truncation#167527

Draft
iskettaneh wants to merge 1 commit intocockroachdb:masterfrom
iskettaneh:rse_truncate
Draft

kvstorage/wag: prepare for WAG truncation#167527
iskettaneh wants to merge 1 commit intocockroachdb:masterfrom
iskettaneh:rse_truncate

Conversation

@iskettaneh
Copy link
Copy Markdown
Contributor

This commit sets up the premitives for WAG truncations by:

  1. Adding a Delete function for removing WAG nodes by index. 2) Changing the WAG Iterator.Iter method to return
    iter.Seq2[uint64, wagpb.Node] pair. This will be useful when we
    iterate over the WAG and truncate the nodes that have been applied and
    synced.

Epic: none
Release note: None

@trunk-io
Copy link
Copy Markdown
Contributor

trunk-io bot commented Apr 4, 2026

Merging to master in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented Apr 4, 2026

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

This commit sets up the premitives for WAG truncations by:

1) Adding a `Delete` function for removing WAG nodes by index.
2) Changing the WAG `Iterator.Iter` method to return
 `iter.Seq2[uint64, wagpb.Node]` pair. This will be useful when we
  iterate over the WAG and truncate the nodes that have been applied and
  synced.

Epic: none
Release note: None

Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
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.

2 participants