Skip to content

mailbox: no hierarchy walk when deleting uuid mailboxes#4764

Merged
elliefm merged 3 commits intocyrusimap:masterfrom
elliefm:v39/supposedly-empty-directory
Dec 11, 2023
Merged

mailbox: no hierarchy walk when deleting uuid mailboxes#4764
elliefm merged 3 commits intocyrusimap:masterfrom
elliefm:v39/supposedly-empty-directory

Conversation

@elliefm
Copy link
Copy Markdown
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 ksmurchison and rsto December 8, 2023 01:01
Copy link
Copy Markdown
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
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