]> git.ipfire.org Git - thirdparty/zstd.git/commit
Set dictionary ID in ZSTD_initCStream_usingCDict() 511/head
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 15 Jan 2017 01:44:54 +0000 (17:44 -0800)
committerGregory Szorc <gregory.szorc@gmail.com>
Sun, 15 Jan 2017 01:44:54 +0000 (17:44 -0800)
commit7d6f478d157642ea91b8d4d19c2267e039dcbc17
treea508bd73616bd7243f1f81e759ccbea25dc8a41c
parentaa64b01138d05747806fba3cba0fd90f3a34f213
Set dictionary ID in ZSTD_initCStream_usingCDict()

When porting python-zstandard to use ZSTD_initCStream_usingCDict()
so compression dictionaries could be reused, an automated test
failed due to compressed content changing.

I tracked this down to ZSTD_initCStream_usingCDict() not
setting the dictID field of the ZSTD_CCtx attached to the
ZSTD_CStream instance.

I'm not 100% convinced this is the correct or full solution,
as I'm still seeing one automated test failing with this change.
lib/compress/zstd_compress.c