1
0
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:
jimw@mysql.com
2005-05-07 06:55:47 -07:00
parent 64cbbf1463
commit d398b6eb51
6 changed files with 50 additions and 1 deletions

View File

@@ -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);