Commit 8bc705a5 authored by Yuchen Pei's avatar Yuchen Pei

MDEV-28856 [demo] static_key_cardinality is always -1

All tests pass still
parent 5786c69d
......@@ -6931,6 +6931,7 @@ ha_rows ha_spider::records_in_range(
dbton_id = share->sql_dbton_ids[search_link_idx];
dbton_hdl = dbton_handler[dbton_id];
crd_mode = dbton_hdl->crd_mode_exchange(crd_mode);
DBUG_ASSERT(share->static_key_cardinality[inx] == -1);
if (crd_mode == 1 || crd_mode == 2)
{
DBUG_PRINT("info", ("spider static_key_cardinality[%u]=%lld", inx,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment