Clean up empty account and container partitions directories.
Because we iterate over these directories on a replication run,
and they are not (previously) cleaned up, the time to start the
replication increases incrementally for each stale directory
lying around. Thousands of directories across dozens of disks
on a single machine can make for non-trivial startup times.
Plus it just seems like good housekeeping.
Closes-Bug: #1396152
Reviewed: https:/ /review. openstack. org/139255 /git.openstack. org/cgit/ openstack/ swift/commit/ ?id=70e35c6084d db62a6124cdd5ba 35f29748dfd746
Committed: https:/
Submitter: Jenkins
Branch: stable/juno
commit 70e35c6084ddb62 a6124cdd5ba35f2 9748dfd746
Author: Caleb Tennis <email address hidden>
Date: Tue Dec 2 15:28:26 2014 -0500
Clean up empty account and container partitions directories.
Because we iterate over these directories on a replication run,
and they are not (previously) cleaned up, the time to start the
replication increases incrementally for each stale directory
lying around. Thousands of directories across dozens of disks
on a single machine can make for non-trivial startup times.
Plus it just seems like good housekeeping.
Closes-Bug: #1396152
Change-Id: Iab607b03b7f011 e87b799d1f9af7a b3b4ff30019