check for allocations in the range that got transffered when its split
This commit is contained in:
1 parent
2d912263b1
commit
5e69e8a7b4
1 file changed
+1
-1
+1
-1
@@ -302,7 +302,7 @@ func (es entries) merge(other entries, ourPeer mesh.PeerName, r *Ring) (result e
|
|||||||
// insert, checking that a range owned by us hasn't been split
|
// insert, checking that a range owned by us hasn't been split
|
||||||
if previousOwner != nil && *previousOwner == ourPeer && theirs.Peer != ourPeer {
|
if previousOwner != nil && *previousOwner == ourPeer && theirs.Peer != ourPeer {
|
||||||
// check we have no allocations in the range that got split
|
// check we have no allocations in the range that got split
|
||||||
if checkEntryHasAllocations(es.entry(i-1), mine) {
|
if checkEntryHasAllocations(theirs, mine) {
|
||||||
err = errEntryInMyRange(theirs)
|
err = errEntryInMyRange(theirs)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user