From ca18d35f117ac389d3b5251627eb02c91e0b0347 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Tue, 8 Jan 2019 15:15:33 +0000 Subject: [PATCH] Revert "Change chunkSize metric to include metadata overhead" This reverts commit 9c90a83d6e31f2bfc54d9fd2bc80a4423755b5cf. Didn't work because the encoded data is not saved on the chunk passed in to Put() Signed-off-by: Bryan Boreham --- chunk.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/chunk.go b/chunk.go index 9193f20877194..78de06218beb5 100644 --- a/chunk.go +++ b/chunk.go @@ -240,11 +240,6 @@ func (c *Chunk) Encode() ([]byte, error) { return c.encoded, nil } -// EncodedSize returns the number of bytes in the encoded data for this chunk -func (c *Chunk) EncodedSize() int { - return len(c.encoded) -} - // DecodeContext holds data that can be re-used between decodes of different chunks type DecodeContext struct { reader *snappy.Reader