Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Remove deleted file from openFiles map and set file path to null #172

Merged
merged 3 commits into from
Apr 14, 2023

Conversation

infeo
Copy link
Member

@infeo infeo commented Apr 14, 2023

Fixes #170.

Before actually deleting files on the underlying file system, the openCryptoFile is removed from the (path, file)-mapping. Additionally, the currentFilePath object is null'ed, to indicate the openCryptoFile should not be used anymore. The usages of currentFilePath are updated to be null safe.

Note, that this only fixes a "symptom", there is still surface for bad timing. The root cause is described in #171.

@infeo infeo added this to the 2.6.4 milestone Apr 14, 2023
@infeo infeo requested a review from overheadhunter April 14, 2023 10:02
@infeo infeo self-assigned this Apr 14, 2023
Co-authored-by: Sebastian Stenzel <[email protected]>
@infeo infeo merged commit 06c3f84 into develop Apr 14, 2023
@infeo infeo deleted the feature/170-nullify-path-on-delete branch April 14, 2023 15:01
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.

Creating file channel to previously deleted file might contain cached content
2 participants