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

Function my_hash_first

mysys/hash.c:262–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260*/
261
262uchar* my_hash_first(const HASH *hash, const uchar *key, size_t length,
263 HASH_SEARCH_STATE *current_record)
264{
265 uchar *res;
266 if (my_hash_inited(hash))
267 res= my_hash_first_from_hash_value(hash,
268 calc_hash(hash, key, length ? length : hash->key_length),
269 key, length, current_record);
270 else
271 res= 0;
272 return res;
273}
274
275
276uchar* my_hash_first_from_hash_value(const HASH *hash,

Callers 2

my_hash_searchFunction · 0.85
my_hash_updateFunction · 0.85

Calls 2

calc_hashFunction · 0.70

Tested by

no test coverage detected