• Yuchen Pei's avatar
    MDEV-33191 spider: fix dbton_id when iterating over links · 1070575a
    Yuchen Pei authored
    There are two array fields in spider_share with similar names:
    
    share->use_sql_dbton_ids that maps from i to the i-th dbton used by
    share. Thus it should be used only when i iterates over all distinct
    dbtons used by share.
    
    share->sql_dbton_ids that maps from i to the dbton used by the i-th
    link of the share. Thus it should be used only when i iterates over
    all links of a share.
    
    We correct instances where share->sql_dbton_ids should be used instead
    of share->use_sql_dbton_ids.
    1070575a
ha_spider.cc 490 KB