Created
July 1, 2011 12:58
-
-
Save lukemarsden/1058494 to your computer and use it in GitHub Desktop.
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
victimsToPrune = [] | |
while len(victimsToPrune) < 10 and suggestedDeletions: | |
victimsToPrune.append(suggestedDeletions.pop()) | |
for victim in victimsToPrune: | |
d.addCallback(lambda ign: debug(victim, msg='start')) | |
d.addCallback(lambda ign: | |
self._snapshotManipulator.prune(victim.key, local_forest)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment