if (comp_size_bits > sizeThreshold * CHAR_BIT) {
comp_size_bits = blkSize * CHAR_BIT;
comp_data->setSizeBits(comp_size_bits);
+ stats.failedCompressions++;
}
// Update stats
: Stats::Group(&_compressor), compressor(_compressor),
compressions(this, "compressions",
"Total number of compressions"),
+ failedCompressions(this, "failed_compressions",
+ "Total number of failed compressions"),
compressionSize(this, "compression_size",
"Number of blocks that were compressed to this power of two size"),
compressionSizeBits(this, "compression_size_bits",
/** Number of compressions performed. */
Stats::Scalar compressions;
+ /** Number of failed compressions. */
+ Stats::Scalar failedCompressions;
+
/** Number of blocks that were compressed to this power of two size. */
Stats::Vector compressionSize;