diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-08-30 15:03:55 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-09-04 10:33:52 +0200 |
commit | 2d2286faf3085160dbe345fe403c11c712a358ff (patch) | |
tree | f69bbeda6f3fe6bb26a2d132500d973f41f5881b /sql/rpl_constants.h | |
parent | 86b06a0e52b7583858df81fec8bd57cfe02b9999 (diff) | |
download | mariadb-git-2d2286faf3085160dbe345fe403c11c712a358ff.tar.gz |
cleanup: use enum_binlog_checksum_alg, not uint8
* fix unireg.h includes
* use enum_binlog_checksum_alg for binlog checksum variables,
not uint8
Diffstat (limited to 'sql/rpl_constants.h')
-rw-r--r-- | sql/rpl_constants.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/rpl_constants.h b/sql/rpl_constants.h index cc6fb8145ad..b1f1286184e 100644 --- a/sql/rpl_constants.h +++ b/sql/rpl_constants.h @@ -69,4 +69,13 @@ enum ExtraRowInfoFormat { #define EXTRA_ROW_INFO_HDR_BYTES 2 #define EXTRA_ROW_INFO_MAX_PAYLOAD (255 - EXTRA_ROW_INFO_HDR_BYTES) +enum enum_binlog_checksum_alg { + BINLOG_CHECKSUM_ALG_OFF= 0, // Events are without checksum though its generator + // is checksum-capable New Master (NM). + BINLOG_CHECKSUM_ALG_CRC32= 1, // CRC32 of zlib algorithm. + BINLOG_CHECKSUM_ALG_ENUM_END, // the cut line: valid alg range is [1, 0x7f]. + BINLOG_CHECKSUM_ALG_UNDEF= 255 // special value to tag undetermined yet checksum + // or events from checksum-unaware servers +}; + #endif /* RPL_CONSTANTS_H */ |