You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
Removed bundled ZStandard compression library.
The ZStandard compression plugin will be build only if the ZStandard libraries and include files are installed on the builder.
This commit is contained in:
@@ -1898,21 +1898,11 @@ restart:
|
||||
if (mysql->client_flag & CLIENT_COMPRESS ||
|
||||
mysql->client_flag & CLIENT_ZSTD_COMPRESSION)
|
||||
{
|
||||
int alg;
|
||||
|
||||
if (mysql->server_capabilities & CLIENT_ZSTD_COMPRESSION)
|
||||
alg= COMPRESSION_ZSTD;
|
||||
else
|
||||
alg= COMPRESSION_ZLIB;
|
||||
|
||||
compression_plugin(net)=
|
||||
(MARIADB_COMPRESSION_PLUGIN *)mysql_client_find_plugin(mysql,
|
||||
_mariadb_compression_algorithm_str(alg),
|
||||
MARIADB_CLIENT_COMPRESSION_PLUGIN);
|
||||
|
||||
if (!compression_plugin(net) ||
|
||||
(!(compression_ctx(net) = compression_plugin(net)->init_ctx(COMPRESSION_LEVEL_DEFAULT))))
|
||||
{
|
||||
int alg= (mysql->client_flag & CLIENT_ZSTD_COMPRESSION) ?
|
||||
COMPRESSION_ZSTD : COMPRESSION_ZLIB;
|
||||
compression_plugin(net)= NULL;
|
||||
my_set_error(mysql, CR_ERR_LOAD_PLUGIN, SQLSTATE_UNKNOWN, NULL,
|
||||
_mariadb_compression_algorithm_str(alg));
|
||||
@@ -1920,7 +1910,6 @@ restart:
|
||||
}
|
||||
net->compress= 1;
|
||||
}
|
||||
|
||||
|
||||
/* last part: select default db */
|
||||
if (!(mysql->server_capabilities & CLIENT_CONNECT_WITH_DB) &&
|
||||
|
Reference in New Issue
Block a user