Skip to content

restore: snapwm txn_commit cleanup#8935

Open
jvarela-jump wants to merge 1 commit intomainfrom
jvarela/snapwm-txn-commit-cleanup
Open

restore: snapwm txn_commit cleanup#8935
jvarela-jump wants to merge 1 commit intomainfrom
jvarela/snapwm-txn-commit-cleanup

Conversation

@jvarela-jump
Copy link
Contributor

snapwm vinyl txn_commit does not need to handle duplicates anymore, and a cleanup was pending after the latest upgrade.

Closes #8844.

Copilot AI review requested due to automatic review settings March 17, 2026 16:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR cleans up the snapwm “vinyl” transactional commit path now that lthash verification makes the old duplicate-account handling unnecessary (per issue #8844).

Changes:

  • Disallow fd_snapwm_vinyl_txn_begin when lthash verification is enabled.
  • Simplify fd_snapwm_vinyl_txn_commit by removing duplicate-account batching/lthash side paths and dropping the stem parameter.
  • Remove the now-unused duplicate-account lthash helper APIs from the snapwm private header and implementation.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/discof/restore/fd_snapwm_tile_vinyl.c Adds lthash-enabled guard for txn begin; simplifies txn commit; removes duplicate-account lthash helper implementation.
src/discof/restore/fd_snapwm_tile_private.h Updates txn API docs/signature; removes duplicate-account lthash helper declarations.
src/discof/restore/fd_snapwm_tile.c Updates call site to match new fd_snapwm_vinyl_txn_commit signature.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines 441 to 443
/* Persist above erases to disk */

int sync_err = fd_vinyl_io_sync( ctx->vinyl.io_mm, FD_VINYL_IO_FLAG_BLOCKING );
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not related to the PR. To be handled separately.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jvarela-jump jvarela-jump force-pushed the jvarela/snapwm-txn-commit-cleanup branch from 7381d4f to a974fd1 Compare March 17, 2026 17:15
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.

restore: snapwm cleanup vinyl txn_commit

2 participants