summaryrefslogtreecommitdiff
path: root/sql/rpl_utility.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-09-02 17:03:19 +0200
committerSergei Golubchik <serg@mariadb.org>2015-09-04 10:33:50 +0200
commit08687f7ef3ccb59ca78a3d037e9db5a514145d64 (patch)
tree7111820588edd5f46a0588d8733a2ff6bef6ce2d /sql/rpl_utility.cc
parent66b9a9409c73e298d6ceb668783a7cdd5ee85a69 (diff)
downloadmariadb-git-08687f7ef3ccb59ca78a3d037e9db5a514145d64.tar.gz
cleanup: my_checksum
remove my_crc_dbug_check (gdb can do it itself). use 0 instead of my_checkum(0, 0, 0) - just as 10.0 does now.
Diffstat (limited to 'sql/rpl_utility.cc')
-rw-r--r--sql/rpl_utility.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/sql/rpl_utility.cc b/sql/rpl_utility.cc
index 5147dc4f0cb..ac49a1bf08f 100644
--- a/sql/rpl_utility.cc
+++ b/sql/rpl_utility.cc
@@ -1192,10 +1192,8 @@ bool event_checksum_test(uchar *event_buf, ulong event_len, uint8 alg)
compile_time_assert(BINLOG_CHECKSUM_ALG_ENUM_END <= 0x80);
}
incoming= uint4korr(event_buf + event_len - BINLOG_CHECKSUM_LEN);
- computed= 0;
- /* checksum the event content but the checksum part itself */
- computed= my_checksum(computed, (const uchar*) event_buf,
- event_len - BINLOG_CHECKSUM_LEN);
+ /* checksum the event content without the checksum part itself */
+ computed= my_checksum(0, event_buf, event_len - BINLOG_CHECKSUM_LEN);
if (flags != 0)
{
/* restoring the orig value of flags of FD */