Skip to content

Fix cleanup of active upload attachments - #373

Open
drredx009-stack wants to merge 1 commit into
szabodanika:masterfrom
drredx009-stack:fix-active-upload-cleanup
Open

drredx009-stack wants to merge 1 commit into
szabodanika:masterfrom
drredx009-stack:fix-active-upload-cleanup

Conversation

@drredx009-stack

@drredx009-stack drredx009-stack commented Oct 25, 2026 •

Copy link
Copy Markdown

Problem
Cleanup can delete attachment while its being uploaded because the pasta is yet to be added to the shared list.

Fix
Keep a track of active uploads in the shared state, RAII guard registers each upload when it starts and unregisters when exits. Cleanup skips directories in active uploads.

Testing
"cargo check" [PASS]

Note: I formatted, I am really sorry some changes are just due to formatting.

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