-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent concurrent expunging / compacting of Drafts folders
If `compactDrafts` was waiting for all the folders to become idle and `compactDrafts` was called again during the waiting, then both would end up running in parallel and attempting to expunge / compact all the Drafts folders. Fix this by making subsequent invocations wait for prior invocations to complete, and by localizing the list of folders to clean at the start of the loop other code can add new folders to clean without disrupting the current clean cycle.
- Loading branch information
Showing
1 changed file
with
44 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters