Canonicalise memstore receiver names

This commit is contained in:
kortschak 2014-06-28 21:46:02 +09:30
parent b1ad887c78
commit dc62d4f32c

View file

@ -30,16 +30,16 @@ func NewMemstoreAllIterator(ts *TripleStore) *AllIterator {
return &out
}
func (memall *AllIterator) Next() (graph.TSVal, bool) {
next, out := memall.Int64AllIterator.Next()
func (it *AllIterator) Next() (graph.TSVal, bool) {
next, out := it.Int64AllIterator.Next()
if !out {
return next, out
}
i64 := next.(int64)
_, ok := memall.ts.revIdMap[i64]
_, ok := it.ts.revIdMap[i64]
if !ok {
return memall.Next()
return it.Next()
}
memall.Last = next
it.Last = next
return next, out
}