We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7c0954 commit abc4ac2Copy full SHA for abc4ac2
sstable/block/compression.go
@@ -230,7 +230,7 @@ func CompressAndChecksumWithCompressor(
230
// Compress the buffer, discarding the result if the improvement isn't at
231
// least 12.5%.
232
algo, buf := compressor.Compress(buf, blockData)
233
- if len(buf) >= len(blockData)-len(blockData)/8 {
+ if len(buf) >= len(blockData)-len(blockData)/8 && algo != NoCompressionIndicator {
234
algo, buf = (noopCompressor{}).Compress(buf, blockData)
235
}
236
0 commit comments