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

Function my_hash_key

mysys/hash.c:190–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188*/
189
190static inline char*
191my_hash_key(const HASH *hash, const uchar *record, size_t *length,
192 my_bool first)
193{
194 if (hash->get_key)
195 return (char*) (*hash->get_key)(record,length,first);
196 *length=hash->key_length;
197 return (char*) record+hash->key_offset;
198}
199
200 /* Calculate pos according to keys */
201

Callers 5

my_hash_rec_maskFunction · 0.85
rec_hashnrFunction · 0.85
hashcmpFunction · 0.85
my_hash_insertFunction · 0.85
my_hash_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected