On Wed, 1 Jan 2025 at 18:22, Sergei Golubchik <serg@mariadb.org> wrote:
> + KEY_CREATE_INFO *key_cinfo= &key.key_create_info;
> +
> + if (is_hash_field_needed)
> + {
> + if (key_cinfo->algorithm == HA_KEY_ALG_UNDEF)
> + key_cinfo->algorithm= HA_KEY_ALG_LONG_HASH;
Perhaps you shouldn't set key algorithm in add_hash_field() then?
or, rather replace the assignment with an assert?