-
Notifications
You must be signed in to change notification settings - Fork 126
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
Enhancement: Implement File Locking for Concurrent Writes #234
Comments
@Pranav0-0Aggarwal if this issue looks good pls assign this issue to me.... |
@asmit27rai I raised a pr for same |
Hi @anmolgupta2015, I noticed that this issue is currently unassigned. I was planning to work on it and make a PR once it's assigned. You shouldn't ask for assignment first? |
Sorry, I just saw issue and implemented solution for it. |
Is there an existing issue for this?
Enhancement: Implement File Locking for Concurrent Writes
Description
Currently, the cache files (
folders_cache.txt
,images_cache.txt
, andvideos_cache.txt
) do not have any file locking mechanism. If multiple processes or threads attempt to write to the same cache file simultaneously, it could result in data corruption or partial writes.Problem
Proposed Solution
Use the
fs2::FileExt
crate to implement exclusive file locking while writing to cache files.Record
The text was updated successfully, but these errors were encountered: