diff options
author | Michael Widenius <monty@mariadb.org> | 2020-08-02 12:31:14 +0300 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2021-05-19 22:27:28 +0200 |
commit | 3105c9e7a5eb3706f6520e1566ed4a2add06c6a5 (patch) | |
tree | 628f083d286f970ac8358f882195ea834c16131e /sql/sql_table.cc | |
parent | 451c4ae548fd4b0dda93ac499682e95b249bfcf4 (diff) | |
download | mariadb-git-3105c9e7a5eb3706f6520e1566ed4a2add06c6a5.tar.gz |
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.
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r-- | sql/sql_table.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 209c799dc59..81c599f24cb 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -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); |