From: Dan van der Ster Date: Wed, 19 Jun 2019 14:57:13 +0000 (+0200) Subject: zstd: compat with v1.4.0 X-Git-Tag: v15.1.0~2419^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=fa9cd3faad689898a12d10d86df6e06dd736497f;p=ceph-ci.git zstd: compat with v1.4.0 In zstd d8e215cbee03b038fffe74aebad63b625c42f23c ZSTD_compress_generic() is renamed to ZSTD_compressStream2(). Signed-off-by: Dan van der Ster --- diff --git a/src/compressor/zstd/ZstdCompressor.h b/src/compressor/zstd/ZstdCompressor.h index 0b17c99ad13..e51ba3b7cbd 100644 --- a/src/compressor/zstd/ZstdCompressor.h +++ b/src/compressor/zstd/ZstdCompressor.h @@ -48,7 +48,7 @@ class ZstdCompressor : public Compressor { inbuf.size = p.get_ptr_and_advance(left, (const char**)&inbuf.src); left -= inbuf.size; ZSTD_EndDirective const zed = (left==0) ? ZSTD_e_end : ZSTD_e_continue; - size_t r = ZSTD_compress_generic(s, &outbuf, &inbuf, zed); + size_t r = ZSTD_compressStream2(s, &outbuf, &inbuf, zed); if (ZSTD_isError(r)) { return -EINVAL; }