mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
cleanup: move checksum code to handler class
make live checksum to be returned in handler::info(), and slow table-scan checksum to be calculated in handler::checksum(). part of MDEV-16249 CHECKSUM TABLE for a spider table is not parallel and saves all data in memory in the spider head by default
This commit is contained in:
@ -5636,7 +5636,7 @@ static int get_schema_tables_record(THD *thd, TABLE_LIST *tables,
|
||||
}
|
||||
if (file->ha_table_flags() & (HA_HAS_OLD_CHECKSUM | HA_HAS_NEW_CHECKSUM))
|
||||
{
|
||||
table->field[18]->store((longlong) file->checksum(), TRUE);
|
||||
table->field[18]->store((longlong) file->stats.checksum, TRUE);
|
||||
table->field[18]->set_notnull();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user