MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / hashcmp

Function hashcmp

mysys/hash.c:373–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371 */
372
373static int hashcmp(const HASH *hash, HASH_LINK *pos, const uchar *key,
374 size_t length)
375{
376 size_t rec_keylength;
377 uchar *rec_key= (uchar*) my_hash_key(hash, pos->data, &rec_keylength, 1);
378 return ((length && length != rec_keylength) ||
379 my_strnncoll(hash->charset, (uchar*) rec_key, rec_keylength,
380 (uchar*) key, rec_keylength));
381}
382
383
384 /* Write a hash-key to the hash-index */

Callers 2

my_hash_nextFunction · 0.85

Calls 1

my_hash_keyFunction · 0.85

Tested by

no test coverage detected