check for allocations in the range that got transffered when its split

This commit is contained in:
Murali Reddy committed 2019-05-13 20:02:36 +05:30
1 parent 2d912263b1
commit 5e69e8a7b4
1 file changed
+1 -1
+1 -1
View File
@@ -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
if previousOwner != nil && *previousOwner == ourPeer && theirs.Peer != ourPeer {
// 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)
return
}