add back sorting of delta nodes

master
Oliver Tonnhofer 2013-05-13 07:39:00 +02:00
parent e924de90af
commit 1e361975e2
1 changed files with 2 additions and 0 deletions

2
cache/delta.go vendored
View File

@ -159,6 +159,7 @@ func (self *DeltaCoordsCache) PutCoords(nodes []element.Node) {
} else {
bunch := self.getBunch(currentBunchId)
bunch.coords = append(bunch.coords, nodes[start:i]...)
sort.Sort(Nodes(bunch.coords))
bunch.needsWrite = true
bunch.Unlock()
}
@ -168,6 +169,7 @@ func (self *DeltaCoordsCache) PutCoords(nodes []element.Node) {
}
bunch := self.getBunch(currentBunchId)
bunch.coords = append(bunch.coords, nodes[start:]...)
sort.Sort(Nodes(bunch.coords))
bunch.needsWrite = true
bunch.Unlock()
}