short-circuit as soon as enough remotes are verified to have a file
This commit is contained in:
parent
eea140c90d
commit
68e2687661
1 changed files with 8 additions and 5 deletions
|
@ -111,6 +111,9 @@ checkRemoveKey key = do
|
|||
then return True
|
||||
else notEnoughCopies need have bad
|
||||
findcopies need have (r:rs) bad = do
|
||||
if (have >= need)
|
||||
then return True
|
||||
else do
|
||||
haskey <- Remotes.inAnnex r key
|
||||
case (haskey) of
|
||||
Right True -> findcopies need (have+1) rs bad
|
||||
|
|
Loading…
Reference in a new issue