From 2f8a72777c42395eb67ecc1f17914f9e05f541cf Mon Sep 17 00:00:00 2001 From: Oliver Tonnhofer Date: Wed, 8 May 2013 15:45:03 +0200 Subject: [PATCH] fix bunchId when storing coords directly --- cache/delta.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/delta.go b/cache/delta.go index 45a43ba..74a0119 100644 --- a/cache/delta.go +++ b/cache/delta.go @@ -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]...)