mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
table checksum background:
my_checksum() mysys function NISAM checksum code moved from mysys to isam/ - it's obsolete MyISAM checksum code moved to mysys table's checksum accessible from sql layer SHOW TABLE STATUS shows checksum (WL#646) code cleanup
This commit is contained in:
@ -503,6 +503,8 @@ int mysqld_extend_show_tables(THD *thd,const char *db,const char *wild)
|
||||
item->maybe_null=1;
|
||||
field_list.push_back(item=new Item_empty_string("Charset",32));
|
||||
item->maybe_null=1;
|
||||
field_list.push_back(item=new Item_int("Checksum",(longlong) 1,21));
|
||||
item->maybe_null=1;
|
||||
field_list.push_back(item=new Item_empty_string("Create_options",255));
|
||||
item->maybe_null=1;
|
||||
field_list.push_back(item=new Item_empty_string("Comment",80));
|
||||
@ -588,6 +590,10 @@ int mysqld_extend_show_tables(THD *thd,const char *db,const char *wild)
|
||||
}
|
||||
str= (table->table_charset ? table->table_charset->name : "default");
|
||||
protocol->store(str, system_charset_info);
|
||||
if (file->table_flags() & HA_HAS_CHECKSUM)
|
||||
protocol->store((ulonglong)file->checksum());
|
||||
else
|
||||
protocol->store_null(); // Checksum
|
||||
{
|
||||
char option_buff[350],*ptr;
|
||||
ptr=option_buff;
|
||||
|
Reference in New Issue
Block a user