Skip to content

Commit

Permalink
Fix compilation after 3339788 (facebook#1081)
Browse files Browse the repository at this point in the history
Summary:
Fix compilation after patch 3339788

Streaming compression
Extend protocol to support streaming compression. ...
Pull Request resolved: facebook#1081

Differential Revision: D19332255

fbshipit-source-id: a24d765
  • Loading branch information
spetrunia authored and facebook-github-bot committed Jan 10, 2020
1 parent 198ba16 commit f9d693c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion include/mysql.h.pp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@
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;
Expand All @@ -102,6 +104,11 @@
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;
Expand Down

0 comments on commit f9d693c

Please sign in to comment.