- before all ZSTD* where enabling ZSTD level 10
now all ZSTD* match there own level and ZSTD match ZSTD10
- embellish the code
#ifdef HAVE_ZSTD
ZSTD_freeCCtx((ZSTD_CCtx*)jcr->ZSTD_compress_workset);
+ jcr->ZSTD_compress_workset = NULL;
#endif
-
+
crypto_session_end(jcr);
bdelete_and_null(jcr->sd_packet_mgr);
size_t ret = ZSTD_compressCCtx((ZSTD_CCtx*) jcr->ZSTD_compress_workset,
bctx.cbuf2, bctx.max_compress_len,
bctx.rbuf, sd->msglen,
- 10);
+ bctx.ff_pkt->Compress_level);
if (ZSTD_isError(ret)) {
/** this should NEVER happen */
fo->Compress_level = 10;
break;
}
+ } else {
+ Dmsg1(10, "Ignore unknown compression code Z%c in the FileSet\n", *p);
}
break;
case 'd': /* Deduplication 0=none 1=Storage 2=Local */