Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add roaring bitmaps to TSI index files. #10122

Merged
merged 8 commits into from
Jul 31, 2018
Prev Previous commit
Fix megacheck
  • Loading branch information
e-dard committed Jul 31, 2018
commit 19a4f1c9b0c2dc3d4e59b332095add450144357e
10 changes: 0 additions & 10 deletions tsdb/index/tsi1/tsi1.go
Original file line number Diff line number Diff line change
@@ -5,7 +5,6 @@ import (
"encoding/binary"
"fmt"
"io"
"unsafe"

"github.com/influxdata/influxdb/tsdb"
)
@@ -545,12 +544,3 @@ func uvarint(data []byte) (value uint64, n int, err error) {
}
return
}

// memalign returns data if its memory address is word align.
// Otherwise returns the next word aligned memory location.
func memalign(data []byte) []byte {
if n := int(uintptr(unsafe.Pointer(&data[0])) % 8); n != 0 {
data = data[8-n:]
}
return data
}