1143.1.1
by Jay Pipes
Fix for bug#437896. Adds a non-ZLIB crc32 hash function taken from PostgreSQL/libmemcached and fixes casting problems in command_log and command_log_reader. |
1 |
/*
|
2 |
* The crc32 functions and data was originally written by Spencer
|
|
3 |
* Garrett <srg@quick.com> and was gleaned from the PostgreSQL source
|
|
4 |
* tree via the files contrib/ltree/crc32.[ch] and from FreeBSD at
|
|
5 |
* src/usr.bin/cksum/crc32.c.
|
|
6 |
*/
|
|
7 |
||
8 |
#ifndef DRIZZLED_CRC32_H
|
|
9 |
#define DRIZZLED_CRC32_H
|
|
10 |
||
11 |
uint32_t hash_crc32(const char *key, size_t key_length); |
|
12 |
||
13 |
#endif /* DRIZZLED_CRC32_H */ |