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/138524 /git.openstack. org/cgit/ openstack/ swift/commit/ ?id=d40cebfe55a 2ef63e0fdceb215 48587bad497a69
Committed: https:/
Submitter: Jenkins
Branch: master
commit d40cebfe55a2ef6 3e0fdceb2154858 7bad497a69
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