fix bunchId when storing coords directly

master
Oliver Tonnhofer 2013-05-08 15:45:03 +02:00
parent 8ad66f762f
commit 2f8a72777c
1 changed files with 1 additions and 1 deletions

2
cache/delta.go vendored
View File

@ -156,7 +156,7 @@ func (self *DeltaCoordsCache) PutCoords(nodes []element.Node) {
if i > bunchSize && i < totalNodes-bunchSize {
// no need to handle concurrent updates to the same
// bunch if we are not at the boundary of a bunchSize
self.putCoordsPacked(bunchId, nodes[start:i])
self.putCoordsPacked(currentBunchId, nodes[start:i])
} else {
bunch := self.getBunch(currentBunchId)
bunch.coords = append(bunch.coords, nodes[start:i]...)