Fix megacheck
parent
5612511a8f
commit
61af08abde
|
@ -1435,21 +1435,6 @@ func (tv *logTagValue) cardinality() int64 {
|
|||
return int64(len(tv.series))
|
||||
}
|
||||
|
||||
// seriesIDs returns a sorted set of seriesIDs.
|
||||
func (tv *logTagValue) seriesIDs() []uint64 {
|
||||
a := make([]uint64, 0, tv.cardinality())
|
||||
if tv.seriesSet != nil {
|
||||
tv.seriesSet.ForEachNoLock(func(id uint64) { a = append(a, id) })
|
||||
return a // IDs are already sorted.
|
||||
}
|
||||
|
||||
for seriesID := range tv.series {
|
||||
a = append(a, seriesID)
|
||||
}
|
||||
sort.Sort(uint64Slice(a))
|
||||
return a
|
||||
}
|
||||
|
||||
// seriesIDSet returns a copy of the logMeasurement's seriesSet, or creates a new
|
||||
// one
|
||||
func (tv *logTagValue) seriesIDSet() *tsdb.SeriesIDSet {
|
||||
|
|
|
@ -3,10 +3,8 @@ package tsi1
|
|||
import (
|
||||
"bytes"
|
||||
"encoding/binary"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
"unsafe"
|
||||
|
||||
"github.com/influxdata/influxdb/tsdb"
|
||||
|
@ -556,11 +554,3 @@ func memalign(data []byte) []byte {
|
|||
}
|
||||
return data
|
||||
}
|
||||
|
||||
// hexdump is a helper for dumping binary data to stderr.
|
||||
func hexdump(data []byte) { os.Stderr.Write([]byte(hex.Dump(data))) }
|
||||
|
||||
// stack is a helper for dumping a stack trace.
|
||||
// func stack() string {
|
||||
// return "------------------------\n" + string(debug.Stack()) + "------------------------\n\n"
|
||||
// }
|
||||
|
|
Loading…
Reference in New Issue