don't count clusters as copies, continued
Handled limitCopies, as well as everything using fromNumCopies and fromMinCopies. This should be everything, probably. Note that, git-annex info displays a count of repositories, which still includes cluster. I think that's ok. It would be possible to filter out clusters there, but to the user they're pretty much just another repository. The numcopies displayed by eg `git-annex info .` does not include clusters.
This commit is contained in:
parent
780367200b
commit
64afbb0b93
6 changed files with 15 additions and 12 deletions
|
@ -253,7 +253,7 @@ checkDropAuto automode mremote afile key a =
|
|||
uuid <- getUUID
|
||||
let remoteuuid = fromMaybe uuid $ Remote.uuid <$> mremote
|
||||
locs' <- trustExclude UnTrusted $ filter (/= remoteuuid) locs
|
||||
if length locs' >= fromNumCopies numcopies
|
||||
if numCopiesCheck'' locs' (>=) numcopies
|
||||
then a numcopies mincopies
|
||||
else stop
|
||||
| otherwise = a numcopies mincopies
|
||||
|
|
|
@ -573,7 +573,7 @@ checkKeyNumCopies key afile numcopies = do
|
|||
locs <- loggedLocations key
|
||||
(untrustedlocations, otherlocations) <- trustPartition UnTrusted locs
|
||||
(deadlocations, safelocations) <- trustPartition DeadTrusted otherlocations
|
||||
let present = length safelocations
|
||||
let present = numCopiesCount safelocations
|
||||
if present < fromNumCopies numcopies
|
||||
then ifM (checkDead key)
|
||||
( do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue