// We do NOT need to switch threads here: the actual compression is done by InsertCompressor on the RealCompressor thread,
// which then switches either to the database thread or to a new executable to run this method.
if(parent == cb) {
short codecID = bestCodec == null ? -1 : bestCodec.metadataID;
ctx.eventProducer.produceEvent(new FinishedCompressionEvent(codecID, origSize, bestCompressedDataSize), context);
if(logMINOR) Logger.minor(this, "Compressed "+origSize+" to "+data.size()+" on "+this+" data = "+data);
}
// Insert it...
short codecNumber = bestCodec == null ? -1 : bestCodec.metadataID;