Skip to content

Persist datastore changes before caching#933

Open
benthecarman wants to merge 1 commit into
lightningdevkit:mainfrom
benthecarman:data-store-insert-or-update
Open

Persist datastore changes before caching#933
benthecarman wants to merge 1 commit into
lightningdevkit:mainfrom
benthecarman:data-store-insert-or-update

Conversation

@benthecarman

Copy link
Copy Markdown
Contributor

Keep the in-memory datastore aligned with the persistent store when writes fail. Updates, insert-or-update calls, and removals now leave the cached state unchanged unless the backing write succeeds.

Add regression coverage for failed datastore persistence across insert, update, insert-or-update, and remove paths.

Issue found by Project Loupe

Keep the in-memory datastore aligned with the persistent store when
writes fail. Updates, insert-or-update calls, and removals now leave the
cached state unchanged unless the backing write succeeds.

Add regression coverage for failed datastore persistence across insert,
update, insert-or-update, and remove paths.

Issue found by Project Loupe
AI-Assisted-By: OpenAI Codex
@benthecarman benthecarman requested a review from tnull June 11, 2026 18:40
@ldk-reviews-bot

ldk-reviews-bot commented Jun 11, 2026

Copy link
Copy Markdown

👋 Thanks for assigning @tnull as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

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