Commit 5a00792c authored by Marko Mäkelä's avatar Marko Mäkelä

Merge 10.4 into 10.5

parents 51a4260f 7955e197
galera_sr_table_contents : missing file
GCF-437 : test relies on InnoDB redo log size limitation
GCF-1060 : MDEV-20848 Galera test failure on galera_sr.GCF_1060
galera_sr_ddl_master : MDEV-20780 Galera test failure on galera_sr.galera_sr_ddl_master
GCF-1043A : MDEV-21170 Galera test failure on galera_sr.GCF-1043A
......@@ -550,11 +550,11 @@ static std::string wsrep_server_incoming_address()
{
if (node_addr.size())
{
size_t const ip_len= wsrep_host_len(node_addr.c_str(), node_addr.size());
if (ip_len + 7 /* :55555\0 */ < inc_addr_max)
size_t const ip_len_mdb= wsrep_host_len(node_addr.c_str(), node_addr.size());
if (ip_len_mdb + 7 /* :55555\0 */ < inc_addr_max)
{
memcpy (inc_addr, node_addr.c_str(), ip_len);
snprintf(inc_addr + ip_len, inc_addr_max - ip_len, ":%u",
memcpy (inc_addr, node_addr.c_str(), ip_len_mdb);
snprintf(inc_addr + ip_len_mdb, inc_addr_max - ip_len_mdb, ":%u",
(int)mysqld_port);
}
else
......
......@@ -165,10 +165,7 @@ static void instant_metadata_lock(dict_index_t& index, mtr_t& mtr)
}
/** Initialize instant->field_map.
@tparam replace_dropped whether to point clustered index fields
to instant->dropped[]
@param[in] table table definition to copy from */
template<bool replace_dropped>
inline void dict_table_t::init_instant(const dict_table_t& table)
{
const dict_index_t& oindex __attribute__((unused))= *table.indexes.start;
......@@ -209,12 +206,10 @@ inline void dict_table_t::init_instant(const dict_table_t& table)
ut_ad(f.col < table.instant->dropped
+ table.instant->n_dropped);
ut_d(n_drop++);
if (replace_dropped) {
size_t d = f.col - table.instant->dropped;
ut_ad(f.col == &table.instant->dropped[d]);
ut_ad(d <= instant->n_dropped);
f.col = &instant->dropped[d];
}
size_t d = f.col - table.instant->dropped;
ut_ad(f.col == &table.instant->dropped[d]);
ut_ad(d <= instant->n_dropped);
f.col = &instant->dropped[d];
}
ut_ad(n_drop == n_dropped());
ut_ad(field_map_it == &instant->field_map[index.n_fields - u]);
......@@ -655,7 +650,7 @@ inline bool dict_table_t::instant_column(const dict_table_t& table,
const field_map_element_t* field_map = old_instant
? old_instant->field_map : NULL;
init_instant<true>(table);
init_instant(table);
if (!metadata_changed) {
metadata_changed = !field_map
......
......@@ -1886,10 +1886,7 @@ struct dict_table_t {
private:
/** Initialize instant->field_map.
@tparam replace_dropped whether to point clustered index fields
to instant->dropped[]
@param[in] table table definition to copy from */
template<bool replace_dropped = false>
inline void init_instant(const dict_table_t& table);
public:
/** Id of the table. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment