Skip to content

Ensure file is closed once , remove repetitiveness#1771

Closed
iamskp11 wants to merge 2 commits intodicedb:masterfrom
iamskp11:iamskp11/dice-db/issue/1765/defer-file-close
Closed

Ensure file is closed once , remove repetitiveness#1771
iamskp11 wants to merge 2 commits intodicedb:masterfrom
iamskp11:iamskp11/dice-db/issue/1765/defer-file-close

Conversation

@iamskp11
Copy link
Copy Markdown
Contributor

@iamskp11 iamskp11 commented Jun 4, 2025

This fixes #1765 . I have simply deferred file closing, and removed all other file close operations before returning. Hence, making sure that file is closed before returning.

@iamskp11 iamskp11 marked this pull request as draft June 4, 2025 14:13
@iamskp11 iamskp11 marked this pull request as ready for review June 4, 2025 14:24
@arpitbbhayani arpitbbhayani deleted the branch dicedb:master February 9, 2026 19:21
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.

Centralize File Closing with defer in ReplayCommand for Each Segment in WAL

2 participants