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

mailbox: no hierarchy walk when deleting uuid mailboxes #4764

Merged
merged 3 commits into from
Dec 11, 2023

Conversation

elliefm
Copy link
Contributor

@elliefm elliefm commented Dec 6, 2023

Skip the hierarchy walk component of mailbox_delete_cleanup() when the mailbox being deleted uses UUID storage (which has no hierarchy on disk). This prevents it inadvertently trying to delete the single character hash directories and then logging spurious "Remove of supposedly empty directory %s failed" messages when they're inevitably not empty. At Fastmail, this message is currently spuriously logged around 100,000 times a day...

@elliefm elliefm force-pushed the v39/supposedly-empty-directory branch from 1a8d899 to 55a1f4e Compare December 7, 2023 23:04
This error should only occur when an actual problem happens,
not routinely for nearly every delete
@elliefm elliefm marked this pull request as ready for review December 8, 2023 01:01
@elliefm elliefm requested review from rsto and ksmurchison December 8, 2023 01:01
Copy link
Contributor

@ksmurchison ksmurchison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@elliefm elliefm merged commit 9fa0491 into cyrusimap:master Dec 11, 2023
1 check passed
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.

3 participants