1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Add support for slave_compressed_protocol, slave_load_tmpdir, and

slave_skip_errors in SHOW VARIABLES. (Bug #7800)


sql/structs.h:
  Add SHOW_SLAVE_SKIP_ERRORS
sql/set_var.cc:
  Add slave_compressed_protocol, slave_load_tmpdir, slave_skip_errors to list
  of variables.
mysql-test/t/rpl_variables.test:
  Add test for additional slave-related variables
mysql-test/r/rpl_variables.result:
  Update results
sql/sql_show.cc:
  Handle showing slave_skip_errors
This commit is contained in:
unknown
2005-05-07 06:55:47 -07:00
parent bd58e3e59c
commit 686d0ba155
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);