summaryrefslogtreecommitdiff
path: root/mysys/checksum.c
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 /mysys/checksum.c
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 'mysys/checksum.c')
-rw-r--r--mysys/checksum.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/mysys/checksum.c b/mysys/checksum.c
index 7bc52c6a178..a948785d935 100644
--- a/mysys/checksum.c
+++ b/mysys/checksum.c
@@ -18,8 +18,6 @@
#include <my_sys.h>
#include <zlib.h>
-ulong my_crc_dbug_check= ~0; /* Cannot happen */
-
/*
Calculate a long checksum for a memoryblock.
@@ -34,7 +32,5 @@ ha_checksum my_checksum(ha_checksum crc, const uchar *pos, size_t length)
{
crc= (ha_checksum) crc32((uint)crc, pos, (uint) length);
DBUG_PRINT("info", ("crc: %lu", (ulong) crc));
- if ((ulong)crc == my_crc_dbug_check)
- my_debug_put_break_here();
return crc;
}