summaryrefslogtreecommitdiff
path: root/sql/rpl_constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/rpl_constants.h')
-rw-r--r--sql/rpl_constants.h9
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 */