mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Change bitfields in Item to an uint16
The reason for the change is that neither clang or gcc can do efficient code when several bit fields are change at the same time or when copying one or more bits between identical bit fields. Updated bits explicitely with & and | is MUCH more efficient than what current compilers can do.
This commit is contained in:
committed by
Sergei Golubchik
parent
451c4ae548
commit
3105c9e7a5
@ -11816,12 +11816,12 @@ bool mysql_checksum_table(THD *thd, TABLE_LIST *tables,
|
||||
field_list.push_back(item= new (thd->mem_root)
|
||||
Item_empty_string(thd, "Table", NAME_LEN*2),
|
||||
thd->mem_root);
|
||||
item->maybe_null= 1;
|
||||
item->flags|= ITEM_FLAG_MAYBE_NULL;
|
||||
field_list.push_back(item= new (thd->mem_root)
|
||||
Item_int(thd, "Checksum", (longlong) 1,
|
||||
MY_INT64_NUM_DECIMAL_DIGITS),
|
||||
thd->mem_root);
|
||||
item->maybe_null= 1;
|
||||
item->flags|= ITEM_FLAG_MAYBE_NULL;
|
||||
if (protocol->send_result_set_metadata(&field_list,
|
||||
Protocol::SEND_NUM_ROWS | Protocol::SEND_EOF))
|
||||
DBUG_RETURN(TRUE);
|
||||
|
Reference in New Issue
Block a user