24#ifndef COMPRESSION_INCLUDED
25#define COMPRESSION_INCLUDED
37#define COMPRESSION_ALGORITHM_ZLIB "zlib"
38#define COMPRESSION_ALGORITHM_ZSTD "zstd"
39#define COMPRESSION_ALGORITHM_UNCOMPRESSED "uncompressed"
40#define COMPRESSION_ALGORITHM_NAME_LENGTH_MAX 32
41#define COMPRESSION_ALGORITHM_COUNT_MAX 3
42#define COMPRESSION_ALGORITHM_NAME_BUFFER_SIZE \
43 ((COMPRESSION_ALGORITHM_NAME_LENGTH_MAX * COMPRESSION_ALGORITHM_COUNT_MAX) + \
45#define PROTOCOL_COMPRESSION_DEFAULT_VALUE "zlib,zstd,uncompressed"
51 std::string
name = std::string());
54 std::vector<std::string> &
list);
57 std::string channel_name,
void parse_compression_algorithms_list(std::string name, std::vector< std::string > &list)
This function is used to parse comma separated list of compression algorithm names and return a list ...
Definition: compression.cc:62
constexpr int default_zstd_compression_level
Definition: compression.h:47
bool validate_compression_attributes(std::string algorithm_names, std::string channel_name, bool ignore_errors)
This function is used to validate compression algorithm names and maximum names is not more than 3.
Definition: compression.cc:93
enum_compression_algorithm get_compression_algorithm(std::string name=std::string())
This function is used to validate compression algorithm specified as part of change replication sourc...
Definition: compression.cc:40
std::string get_compression_algorithm_name(enum_compression_algorithm)
bool is_zstd_compression_level_valid(uint level)
This function is used to validate compression level for zstd compression.
Definition: compression.cc:77
enum_compression_algorithm
Definition: my_compress.h:28
Some integer typedefs for easier portability.
Common definition between mysql server & client.
static bool ignore_errors
Definition: mysqlcheck.cc:62
std::list< T, ut::allocator< T > > list
Specialization of list which uses ut_allocator.
Definition: ut0new.h:2880
case opt name
Definition: sslopt-case.h:29