diff options
author | Kentoku SHIBA <kentokushiba@gmail.com> | 2019-06-11 00:25:08 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-11 00:25:08 +0900 |
commit | be5c432a42eed10535354f31dfd6daa07095e555 (patch) | |
tree | ad091eebd8127ab3506511588c33146c5308e8c0 /sql/sql_show.cc | |
parent | 5e9090ef161e9e083e7059439246e5e2ef1718e4 (diff) | |
download | mariadb-git-be5c432a42eed10535354f31dfd6daa07095e555.tar.gz |
MDEV-16249 CHECKSUM TABLE for a spider table is not parallel and saves all data in memory in the spider head by default (#1328)
add checksum_null for setting null value of checksum
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index adf6544ff3e..bf5bb0ae7d5 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -5668,7 +5668,9 @@ static int get_schema_tables_record(THD *thd, TABLE_LIST *tables, table->field[16]->store_time(&time); table->field[16]->set_notnull(); } - if (file->ha_table_flags() & (HA_HAS_OLD_CHECKSUM | HA_HAS_NEW_CHECKSUM)) + if ((file->ha_table_flags() & + (HA_HAS_OLD_CHECKSUM | HA_HAS_NEW_CHECKSUM)) && + !file->stats.checksum_null) { table->field[18]->store((longlong) file->stats.checksum, TRUE); table->field[18]->set_notnull(); |