From 2d2286faf3085160dbe345fe403c11c712a358ff Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sun, 30 Aug 2015 15:03:55 +0200 Subject: cleanup: use enum_binlog_checksum_alg, not uint8 * fix unireg.h includes * use enum_binlog_checksum_alg for binlog checksum variables, not uint8 --- sql/rpl_constants.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sql/rpl_constants.h') 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 */ -- cgit v1.2.1