finalized retrofit of ZSTD_CCtx_reset()

updated all depending sources
This commit is contained in:
Yann Collet
2018-11-14 13:05:35 -08:00
parent 5adbad4059
commit 7b0391e37e
6 changed files with 440 additions and 422 deletions
+1 -1
View File
@@ -3862,7 +3862,7 @@ size_t ZSTD_compress_generic (ZSTD_CCtx* cctx,
{ size_t const flushMin = ZSTDMT_compressStream_generic(cctx->mtctx, output, input, endOp);
if ( ZSTD_isError(flushMin)
|| (endOp == ZSTD_e_end && flushMin == 0) ) { /* compression completed */
ZSTD_CCtx_reset(cctx);
ZSTD_CCtx_reset(cctx, ZSTD_CCtx_reset_session_only);
}
DEBUGLOG(5, "completed ZSTD_compress_generic delegating to ZSTDMT_compressStream_generic");
return flushMin;