Skip to content

Commit

Permalink
ban compression
Browse files Browse the repository at this point in the history
Signed-off-by: Little-Wallace <[email protected]>
  • Loading branch information
Little-Wallace committed Oct 14, 2020
1 parent a632aff commit c8e9403
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/log_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,12 +591,7 @@ where
item.encode_to::<W>(&mut vec).unwrap();
}

let compression_type = if vec.len() > COMPRESSION_SIZE {
vec = lz4::encode_block(&vec[HEADER_LEN..], HEADER_LEN, 4);
CompressionType::Lz4
} else {
CompressionType::None
};
let compression_type = CompressionType::None;

let checksum = crc32(&vec[8..]);
vec.encode_u32_le(checksum).unwrap();
Expand Down

0 comments on commit c8e9403

Please sign in to comment.