mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Add support for slave_compressed_protocol, slave_load_tmpdir, and
slave_skip_errors in SHOW VARIABLES. (Bug #7800)
This commit is contained in:
@@ -1345,6 +1345,33 @@ static bool show_status_array(THD *thd, const char *wild,
|
||||
pthread_mutex_unlock(&LOCK_active_mi);
|
||||
break;
|
||||
}
|
||||
case SHOW_SLAVE_SKIP_ERRORS:
|
||||
{
|
||||
MY_BITMAP *bitmap= (MY_BITMAP *)value;
|
||||
if (!use_slave_mask || bitmap_is_clear_all(bitmap))
|
||||
{
|
||||
end= strmov(buff, "OFF");
|
||||
}
|
||||
else if (bitmap_is_set_all(bitmap))
|
||||
{
|
||||
end= strmov(buff, "ALL");
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i= 1; i < MAX_SLAVE_ERROR; i++)
|
||||
{
|
||||
if (bitmap_is_set(bitmap, i))
|
||||
{
|
||||
end+= my_snprintf((char *)end, sizeof(buff) - (end - buff),
|
||||
"%d,", i);
|
||||
}
|
||||
}
|
||||
if (end != buff)
|
||||
end--; // Remove last ','
|
||||
*(char *)end= 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
#endif /* HAVE_REPLICATION */
|
||||
case SHOW_OPENTABLES:
|
||||
end= int10_to_str((long) cached_tables(), buff, 10);
|
||||
|
||||
Reference in New Issue
Block a user