]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
removed exception code for overlapLog level 22
authorYann Collet <cyan@fb.com>
Wed, 12 Dec 2018 02:13:06 +0000 (18:13 -0800)
committerYann Collet <cyan@fb.com>
Wed, 12 Dec 2018 02:13:06 +0000 (18:13 -0800)
CLI used to set overlapLog at value 9 when level == 22.
This is no longer necessary (handled internally within library)

programs/fileio.c

index 4e4adbdbb174d5a072a5480394f352185fcacb0f..004d71aa740f25464522cc63f3588e0b6d97ae5b 100644 (file)
@@ -557,9 +557,6 @@ static cRess_t FIO_createCResources(const char* dictFileName, int cLevel,
         DISPLAYLEVEL(5,"set nb workers = %u \n", g_nbWorkers);
         CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_nbWorkers, g_nbWorkers) );
         CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_jobSize, g_blockSize) );
-        if ( (g_overlapLog == FIO_OVERLAP_LOG_NOTSET)
-          && (cLevel == ZSTD_maxCLevel()) )
-            g_overlapLog = 9;   /* full overlap */
         if (g_overlapLog != FIO_OVERLAP_LOG_NOTSET) {
             DISPLAYLEVEL(3,"set overlapLog = %u \n", g_overlapLog);
             CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_overlapLog, g_overlapLog) );