1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-4814 Add a cmake build option to enable LZ4 compression.

This patch adds an option for cmake flags to enable lz4 compression.
This commit is contained in:
Denis Khalikov
2021-07-15 21:40:20 +03:00
parent a5135f11b7
commit fa8dc815a7
6 changed files with 46 additions and 7 deletions

View File

@ -19,12 +19,15 @@
#include <my_config.h>
#include "idb_mysql.h"
#include "ha_mcs_sysvars.h"
#include "mcsconfig.h"
const char* mcs_compression_type_names[] = {
"SNAPPY", // 0
"SNAPPY", // 1
"SNAPPY", // 2
#ifdef HAVE_LZ4
"LZ4", // 3
#endif
NullS
};

View File

@ -21,6 +21,7 @@
#include <my_config.h>
#include "idb_mysql.h"
#include "mcsconfig.h"
extern st_mysql_sys_var* mcs_system_variables[];
extern st_mysql_show_var mcs_status_variables[];
@ -31,7 +32,9 @@ extern char cs_commit_hash[];
enum mcs_compression_type_t {
NO_COMPRESSION = 0,
SNAPPY = 2,
#ifdef HAVE_LZ4
LZ4 = 3
#endif
};
// use_import_for_batchinsert mode