revision-id: 62cde94a0c51d565a430a4c7e43d514fe14e64fc (fb-prod201903-199-g62cde94a0c5) parent(s): d8e7af55ca61ee23916eb693bf3c1f17cdab812f author: Sergei Petrunia committer: Sergei Petrunia timestamp: 2020-01-09 14:53:17 +0100 message: Fix compilation after 3339788 Fix compilation after patch 3339788 Streaming compression Summary: Extend protocol to support streaming compression. ... --- include/mysql.h.pp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/mysql.h.pp b/include/mysql.h.pp index 17d40ebfea7..edf7a0990ea 100644 --- a/include/mysql.h.pp +++ b/include/mysql.h.pp @@ -77,7 +77,9 @@ typedef struct ssl_st SSL; enum mysql_compression_lib { MYSQL_COMPRESSION_NONE, MYSQL_COMPRESSION_ZLIB, - MYSQL_COMPRESSION_ZSTD + MYSQL_COMPRESSION_ZSTD, + MYSQL_COMPRESSION_ZSTD_STREAM, + MYSQL_COMPRESSION_LZ4F_STREAM }; typedef struct ZSTD_CCtx_s ZSTD_CCtx; typedef struct ZSTD_DCtx_s ZSTD_DCtx; @@ -102,6 +104,11 @@ typedef struct st_net { enum mysql_compression_lib comp_lib; ZSTD_CCtx *cctx; ZSTD_DCtx *dctx; + void *lz4f_cctx; + void *lz4f_dctx; + unsigned char* compress_buf; + unsigned long compress_buf_len; + my_bool reset_cctx; void *qsbr_context; unsigned char *unused; unsigned int last_errno;