MySQL 8.0.40
Source Code Documentation
|
#include "compression.h"
#include "m_ctype.h"
#include "my_dbug.h"
#include "my_sys.h"
#include "mysqld_error.h"
Functions | |
enum_compression_algorithm | get_compression_algorithm (std::string name) |
This function is used to validate compression algorithm specified as part of change master to statement. More... | |
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 containing every algorithm name. More... | |
bool | is_zstd_compression_level_valid (uint level) |
This function is used to validate compression level for zstd compression. More... | |
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. More... | |
enum_compression_algorithm get_compression_algorithm | ( | std::string | name | ) |
This function is used to validate compression algorithm specified as part of change master to statement.
name | compression algorithm name. Name can be either zlib,zstd or empty string. |
an | enum to represents what algorithm is specified in case it is a valid algorithm else return INVALID. |
bool is_zstd_compression_level_valid | ( | uint | level | ) |
This function is used to validate compression level for zstd compression.
level | compression level to be validated against compression name |
false | if level is not valid. |
true | if level is valid. |
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 containing every algorithm name.
name | comma separated list of compression algorithm names | |
[out] | list | list containing algorithm names |
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.
algorithm_names | list of compression algorithm names. |
channel_name | Replication channel name. |
ignore_errors | If set to false, report errors to the client, otherwise do not report errors" |
0 | success |
1 | error or warnings |