Skip to content

Commit

Permalink
Merge pull request #2598 from senhuang42/reduce_index_rowhash_fix
Browse files Browse the repository at this point in the history
Fix chaintable check to include rowhash in ZSTD_reduceIndex()
  • Loading branch information
senhuang42 authored May 3, 2021
2 parents 4c5cc34 + 61fe571 commit cc31bb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compress/zstd_compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -2303,7 +2303,7 @@ static void ZSTD_reduceIndex (ZSTD_matchState_t* ms, ZSTD_CCtx_params const* par
ZSTD_reduceTable(ms->hashTable, hSize, reducerValue);
}

if (params->cParams.strategy != ZSTD_fast) {
if (ZSTD_allocateChainTable(params->cParams.strategy, params->useRowMatchFinder, (U32)ms->dedicatedDictSearch)) {
U32 const chainSize = (U32)1 << params->cParams.chainLog;
if (params->cParams.strategy == ZSTD_btlazy2)
ZSTD_reduceTable_btlazy2(ms->chainTable, chainSize, reducerValue);
Expand Down

0 comments on commit cc31bb8

Please sign in to comment.