fixed --rebalance stability on drop

Was checking the wrong uuid, oops
This commit is contained in:
Joey Hess 2024-08-13 13:32:11 -04:00
parent 5afbea25e7
commit 10d8b3cc63
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 1 additions and 5 deletions

View file

@ -603,7 +603,7 @@ limitFullyBalanced mu getgroupmap groupname = Right $ MatchFiles
let keysize = fromMaybe 0 (fromKey keySize key)
let hasspace u = case (M.lookup u maxsizes, M.lookup u sizemap) of
(Just (MaxSize maxsize), Just (RepoSize reposize)) ->
if maybe False (`S.member` notpresent) mu
if u `S.member` notpresent
then reposize <= maxsize
else reposize + keysize <= maxsize
_ -> True