mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Revert "Fix 2 more VS2015 warnings"
This reverts commit 0ea45725d8
,
since it breaks clang
This commit is contained in:
parent
0ea45725d8
commit
84e8e07e8e
1 changed files with 10 additions and 9 deletions
19
sql/slave.cc
19
sql/slave.cc
|
@ -2626,6 +2626,7 @@ bool show_master_info(THD *thd, Master_info *mi, bool full)
|
|||
void show_master_info_get_fields(THD *thd, List<Item> *field_list,
|
||||
bool full, size_t gtid_pos_length)
|
||||
{
|
||||
Master_info *mi;
|
||||
MEM_ROOT *mem_root= thd->mem_root;
|
||||
DBUG_ENTER("show_master_info_get_fields");
|
||||
|
||||
|
@ -2644,10 +2645,10 @@ void show_master_info_get_fields(THD *thd, List<Item> *field_list,
|
|||
Item_empty_string(thd, "Slave_IO_State", 30),
|
||||
mem_root);
|
||||
field_list->push_back(new (mem_root)
|
||||
Item_empty_string(thd, "Master_Host", sizeof(Master_info::host)),
|
||||
Item_empty_string(thd, "Master_Host", sizeof(mi->host)),
|
||||
mem_root);
|
||||
field_list->push_back(new (mem_root)
|
||||
Item_empty_string(thd, "Master_User", sizeof(Master_info::user)),
|
||||
Item_empty_string(thd, "Master_User", sizeof(mi->user)),
|
||||
mem_root);
|
||||
field_list->push_back(new (mem_root)
|
||||
Item_return_int(thd, "Master_Port", 7, MYSQL_TYPE_LONG),
|
||||
|
@ -2732,23 +2733,23 @@ void show_master_info_get_fields(THD *thd, List<Item> *field_list,
|
|||
mem_root);
|
||||
field_list->push_back(new (mem_root)
|
||||
Item_empty_string(thd, "Master_SSL_CA_File",
|
||||
sizeof(Master_info::ssl_ca)),
|
||||
sizeof(mi->ssl_ca)),
|
||||
mem_root);
|
||||
field_list->push_back(new (mem_root)
|
||||
Item_empty_string(thd, "Master_SSL_CA_Path",
|
||||
sizeof(Master_info::ssl_capath)),
|
||||
sizeof(mi->ssl_capath)),
|
||||
mem_root);
|
||||
field_list->push_back(new (mem_root)
|
||||
Item_empty_string(thd, "Master_SSL_Cert",
|
||||
sizeof(Master_info::ssl_cert)),
|
||||
sizeof(mi->ssl_cert)),
|
||||
mem_root);
|
||||
field_list->push_back(new (mem_root)
|
||||
Item_empty_string(thd, "Master_SSL_Cipher",
|
||||
sizeof(Master_info::ssl_cipher)),
|
||||
sizeof(mi->ssl_cipher)),
|
||||
mem_root);
|
||||
field_list->push_back(new (mem_root)
|
||||
Item_empty_string(thd, "Master_SSL_Key",
|
||||
sizeof(Master_info::ssl_key)),
|
||||
sizeof(mi->ssl_key)),
|
||||
mem_root);
|
||||
field_list->push_back(new (mem_root)
|
||||
Item_return_int(thd, "Seconds_Behind_Master", 10,
|
||||
|
@ -2782,11 +2783,11 @@ void show_master_info_get_fields(THD *thd, List<Item> *field_list,
|
|||
mem_root);
|
||||
field_list->push_back(new (mem_root)
|
||||
Item_empty_string(thd, "Master_SSL_Crl",
|
||||
sizeof(Master_info::ssl_crl)),
|
||||
sizeof(mi->ssl_crl)),
|
||||
mem_root);
|
||||
field_list->push_back(new (mem_root)
|
||||
Item_empty_string(thd, "Master_SSL_Crlpath",
|
||||
sizeof(Master_info::ssl_crlpath)),
|
||||
sizeof(mi->ssl_crlpath)),
|
||||
mem_root);
|
||||
field_list->push_back(new (mem_root)
|
||||
Item_empty_string(thd, "Using_Gtid",
|
||||
|
|
Loading…
Reference in a new issue