python-memcached icon indicating copy to clipboard operation
python-memcached copied to clipboard

Fix cmemcahe_hash 0 values being translated to 1

Open hyperair opened this issue 7 years ago • 0 comments

Some keys which should be hashed to 0 end up being hashed to 1 in cmemcache_hash. This results in a discrepancy between the server hash chosen by python-memcached and pylibmc (and other libmemcached derivatives).

Remove the or 1 that causes this.

An example of a key that is hashed to 0 by libmemcached using crc32+modula is ob.

hyperair avatar Nov 12 '18 07:11 hyperair