correct the slice of transfered tags at leave
This commit is contained in:
parent
4302452d18
commit
470ce6f39a
|
@ -293,8 +293,11 @@ fediChordVserverLeave ns = do
|
||||||
successorLeave <- liftIO $ sendUntilSuccess 0
|
successorLeave <- liftIO $ sendUntilSuccess 0
|
||||||
-- trigger service data transfer for abandoned key space
|
-- trigger service data transfer for abandoned key space
|
||||||
migrateToNode <- liftEither successorLeave
|
migrateToNode <- liftEither successorLeave
|
||||||
|
let lowerKeyBound = maybe (getNid ns) getNid $ headMay (predecessors ns)
|
||||||
ownService <- nodeService <$> (liftIO . readTVarIO $ parentRealNode ns)
|
ownService <- nodeService <$> (liftIO . readTVarIO $ parentRealNode ns)
|
||||||
migrationResult <- liftIO $ migrateData ownService (getNid ns) (getNid migrateToNode) (getDomain migrateToNode, fromIntegral $ getServicePort migrateToNode)
|
-- previously held data is the one between the immediate predecessor and
|
||||||
|
-- the own ID
|
||||||
|
migrationResult <- liftIO $ migrateData ownService lowerKeyBound (getNid ns) (getDomain migrateToNode, fromIntegral $ getServicePort migrateToNode)
|
||||||
liftEither migrationResult
|
liftEither migrationResult
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue