]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Revert Ability to Set HashLog and ChainLog on Context When Dict is Attached 1317/head
authorW. Felix Handte <w@felixhandte.com>
Mon, 1 Oct 2018 20:28:13 +0000 (13:28 -0700)
committerW. Felix Handte <w@felixhandte.com>
Mon, 1 Oct 2018 20:28:13 +0000 (13:28 -0700)
This capability is not needed / used in the current unit of work. I'll
re-introduce it later, when we start allowing users to override the deduced
working context logs.

lib/compress/zstd_compress.c

index 2bd672c154a9d96bd904c3de2caa5a78d8bd9e6a..6efffefbaf0e4c88fdaf54a20f92456deb7bc000 100644 (file)
@@ -284,11 +284,9 @@ size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, unsigned v
         if (cctx->cdict) return ERROR(stage_wrong);
         return ZSTD_CCtxParam_setParameter(&cctx->requestedParams, param, value);
 
+    case ZSTD_p_windowLog:
     case ZSTD_p_hashLog:
     case ZSTD_p_chainLog:
-        return ZSTD_CCtxParam_setParameter(&cctx->requestedParams, param, value);
-
-    case ZSTD_p_windowLog:
     case ZSTD_p_searchLog:
     case ZSTD_p_minMatch:
     case ZSTD_p_targetLength: