Skip to content

Modify mkOpenState in ImmutableDB and VolatileDB#1917

Merged
jasagredo merged 1 commit intomainfrom
js/mkOpenState
Apr 6, 2026
Merged

Modify mkOpenState in ImmutableDB and VolatileDB#1917
jasagredo merged 1 commit intomainfrom
js/mkOpenState

Conversation

@jasagredo
Copy link
Copy Markdown
Contributor

No description provided.

@nfrisby nfrisby force-pushed the js/forkers-again branch 3 times, most recently from 1ee95b8 to 8db9fa4 Compare March 24, 2026 13:29
Base automatically changed from js/forkers-again to main March 25, 2026 14:02
@jasagredo jasagredo force-pushed the js/mkOpenState branch 2 times, most recently from 8bf89e9 to 28e580d Compare March 30, 2026 10:31
@jasagredo jasagredo enabled auto-merge March 30, 2026 10:40

-- | Create the internal open state for the given chunk.
--
-- TODO: mkOpenState does not need to run in WithTempRegistry.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For reviewers: turns out this TODO was wrong

Copy link
Copy Markdown
Contributor

@nfrisby nfrisby left a comment

Choose a reason for hiding this comment

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

LGTM, nice comments.

Follow-up question: is WithTempRegistry preferable to eg bracket for the repeated uses of mkOpenState? Sounds plausible, I just haven't thought it through at all.

@jasagredo
Copy link
Copy Markdown
Contributor Author

We would need to do a bracket that doesn't deallocate the resource if it ends up in the TVar. Which I think is precisely what temp registries do so maybe it is not worth the complexity

@jasagredo jasagredo removed the request for review from fraser-iohk April 6, 2026 11:10
@jasagredo jasagredo merged commit 9d29cfd into main Apr 6, 2026
19 of 21 checks passed
@jasagredo jasagredo deleted the js/mkOpenState branch April 6, 2026 12:16
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.

3 participants