Browse Source

[demo] mysql.spider_table_sts is empty, but it returns something when read

10.10-spider-sts-demo
Yuchen Pei 2 years ago
parent
commit
c5ced9cb53
No known key found for this signature in database GPG Key ID: 3DD1B35105743563
  1. 1
      storage/spider/mysql-test/spider/t/spider_fixes.test
  2. 5
      storage/spider/spd_table.cc

1
storage/spider/mysql-test/spider/t/spider_fixes.test

@ -266,6 +266,7 @@ SELECT a, b, date_format(c, '%Y-%m-%d %H:%i:%s') FROM ta_l ORDER BY a;
--echo
--echo 2.15
--echo select table with range scan
select count(*) from mysql.spider_table_sts;
TRUNCATE TABLE ta_l;
--disable_warnings
DROP TABLE IF EXISTS ta_l;

5
storage/spider/spd_table.cc

@ -7040,7 +7040,10 @@ int spider_get_sts(
!error_num ||
(error_num != HA_ERR_KEY_NOT_FOUND && error_num != HA_ERR_END_OF_FILE)
)
need_to_get = FALSE;
{
abort();
need_to_get = FALSE;
}
}
if (need_to_get)

Loading…
Cancel
Save