mirror of https://github.com/tidwall/tile38.git
Fix last merge
This commit is contained in:
parent
f2bbf10c36
commit
991963268a
|
@ -419,7 +419,6 @@ Developer Options:
|
|||
if showThreadsDisabled {
|
||||
log.Warnf("thread flag is deprecated use GOMAXPROCS to set number of threads instead")
|
||||
}
|
||||
|
||||
if err := server.Serve(host, port, dir, httpTransport, *metricsAddr); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
|
|
@ -62,8 +62,9 @@ type Collection struct {
|
|||
// New creates an empty collection
|
||||
func New() *Collection {
|
||||
col := &Collection{
|
||||
index: geoindex.Wrap(&rbang.RTree{}),
|
||||
values: btree.New(32, nil),
|
||||
items: btree.New(byID),
|
||||
index: geoindex.Wrap(&rtree.RTree{}),
|
||||
values: btree.New(byValue),
|
||||
fieldMap: make(map[string]int),
|
||||
fieldArr: make([]string, 0),
|
||||
fieldValues: &fieldValues{},
|
||||
|
@ -354,7 +355,7 @@ func (c *Collection) Scan(
|
|||
return true
|
||||
}
|
||||
nextStep(count, cursor, deadline)
|
||||
iitm := value.(*itemT)
|
||||
iitm := item.(*itemT)
|
||||
keepon = iterator(iitm.id, iitm.obj, c.fieldValues.get(iitm.fieldValuesSlot))
|
||||
return keepon
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue