Commit 590ba327 authored by Sergei Golubchik's avatar Sergei Golubchik

federated.partition test - fix the bad merge

parent 487b3ba7
...@@ -1465,6 +1465,7 @@ int ha_partition::prepare_new_partition(TABLE *tbl, ...@@ -1465,6 +1465,7 @@ int ha_partition::prepare_new_partition(TABLE *tbl,
if ((error= set_up_table_before_create(tbl, part_name, create_info, p_elem))) if ((error= set_up_table_before_create(tbl, part_name, create_info, p_elem)))
goto error_create; goto error_create;
tbl->s->connect_string = p_elem->connect_string;
if ((error= file->ha_create(part_name, tbl, create_info))) if ((error= file->ha_create(part_name, tbl, create_info)))
{ {
/* /*
...@@ -3421,9 +3422,11 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked) ...@@ -3421,9 +3422,11 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked)
{ {
create_partition_name(name_buff, name, name_buffer_ptr, NORMAL_PART_NAME, create_partition_name(name_buff, name, name_buffer_ptr, NORMAL_PART_NAME,
FALSE); FALSE);
table->s->connect_string = m_connect_string[(uint)(file-m_file)];
if ((error= (*file)->ha_open(table, name_buff, mode, if ((error= (*file)->ha_open(table, name_buff, mode,
test_if_locked | HA_OPEN_NO_PSI_CALL))) test_if_locked | HA_OPEN_NO_PSI_CALL)))
goto err_handler; goto err_handler;
bzero(&table->s->connect_string, sizeof(LEX_STRING));
if (m_file == file) if (m_file == file)
m_num_locks= (*file)->lock_count(); m_num_locks= (*file)->lock_count();
DBUG_ASSERT(m_num_locks == (*file)->lock_count()); DBUG_ASSERT(m_num_locks == (*file)->lock_count());
......
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