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

Adds configurable compression algorithms for chunks #1411

Merged
merged 22 commits into from
Dec 13, 2019
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove default Gzip for ByteChunk.
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
  • Loading branch information
cyriltovena committed Dec 12, 2019
commit e000011efac68a9c55c4ecab593c1d6546f0d985
3 changes: 1 addition & 2 deletions pkg/chunkenc/memchunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ func NewMemChunkSize(enc Encoding, blockSize, targetSize int) *MemChunk {
// NewByteChunk returns a MemChunk on the passed bytes.
func NewByteChunk(b []byte) (*MemChunk, error) {
bc := &MemChunk{
encoding: EncGZIP,
head: &headBlock{}, // Dummy, empty headblock.
head: &headBlock{}, // Dummy, empty headblock.
}
db := decbuf{b: b}

Expand Down