mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-09 04:17:51 +00:00
more logging
This commit is contained in:
parent
a2b5396fa4
commit
8800ab90b2
3 changed files with 5 additions and 3 deletions
|
|
@ -48,7 +48,7 @@ func NewService() *Service {
|
|||
service.WebService = NewWebService(service)
|
||||
service.Index = index.NewFragmentContainer()
|
||||
service.Hold = hold.NewHolder()
|
||||
service.version = "0.0.23"
|
||||
service.version = "0.0.24"
|
||||
service.name = "Cruncher"
|
||||
service.PrepareLogging()
|
||||
fmt.Printf("Pilosa %s\n", service.version)
|
||||
|
|
|
|||
|
|
@ -201,7 +201,9 @@ func (self *Brand) TopN(src_bitmap IBitmap, n int, categories []uint64) []Pair {
|
|||
|
||||
}
|
||||
|
||||
return self.TopNCat(src_bitmap, n, is)
|
||||
test := self.TopNCat(src_bitmap, n, is)
|
||||
log.Println("TOPN:", test)
|
||||
return test
|
||||
}
|
||||
func dump(r RankList, n int) {
|
||||
for i, v := range r {
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ func (self *FragmentContainer) TopN(frag_id SUUID, bh BitmapHandle, n int, categ
|
|||
SendTimer("fragmant_container_TopN", result.exec_time.Nanoseconds())
|
||||
return result.answer.([]Pair), nil
|
||||
}
|
||||
return nil, nil
|
||||
return nil, errors.New(fmt.Sprintf("Fragment not found:%s", SUUID_to_Hex(frag_id)))
|
||||
}
|
||||
|
||||
func (self *FragmentContainer) GetList(frag_id SUUID, bitmap_id []uint64) ([]BitmapHandle, error) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue