This new function iterates hash entries with given hash values. This function is designed to avoid full sequential hash search in the syscache invalidation callbacks.
<-->/* <--> * If the hashvalue is not specified, we have to recheck all currently <--> * used session variables. Since we can't tell the exact session variable <--> * from its hashvalue, we have to iterate over all items in the hash bucket. <--> */ <-->if (hashvalue == 0) <--><-->hash_seq_init(&status, sessionvars); <-->else <--><-->hash_seq_init_with_hash_value(&status, sessionvars, hashvalue);