Merge pull request #6173 from benbjohnson/init-merge-iterator

Mark MergeIterator as initialized
pull/6174/head
Ben Johnson 2016-03-31 10:10:16 -06:00
commit 497ff7643c
2 changed files with 5 additions and 0 deletions

View File

@ -182,6 +182,7 @@ func (itr *floatMergeIterator) Next() *FloatPoint {
itr.heap.items = append(itr.heap.items, item)
}
heap.Init(itr.heap)
itr.init = true
}
for {
@ -1994,6 +1995,7 @@ func (itr *integerMergeIterator) Next() *IntegerPoint {
itr.heap.items = append(itr.heap.items, item)
}
heap.Init(itr.heap)
itr.init = true
}
for {
@ -3803,6 +3805,7 @@ func (itr *stringMergeIterator) Next() *StringPoint {
itr.heap.items = append(itr.heap.items, item)
}
heap.Init(itr.heap)
itr.init = true
}
for {
@ -5612,6 +5615,7 @@ func (itr *booleanMergeIterator) Next() *BooleanPoint {
itr.heap.items = append(itr.heap.items, item)
}
heap.Init(itr.heap)
itr.init = true
}
for {

View File

@ -179,6 +179,7 @@ func (itr *{{$k.name}}MergeIterator) Next() *{{$k.Name}}Point {
itr.heap.items = append(itr.heap.items, item)
}
heap.Init(itr.heap)
itr.init = true
}
for {