Skip to content

Close AOF file handle after each append - #2

Open
Stephen0512 wants to merge 1 commit into
lurumad:mainfrom
Stephen0512:main
Open

Close AOF file handle after each append#2
Stephen0512 wants to merge 1 commit into
lurumad:mainfrom
Stephen0512:main

Conversation

@Stephen0512

Copy link
Copy Markdown

This pull request fixes a file-handling issue by:

  • Stop keeping a long-lived open file handle in AppendOnlyFilePersistence.__init__
  • Open the AOF file inside log_command with a with block so it is always closed after each write

This issue was identified during an ongoing research project.

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.

1 participant