Skip to content

Commit

Permalink
Fix rpl.rpl_report_port
Browse files Browse the repository at this point in the history
Summary:
This fixes SHOW SLAVE HOSTS so that all fields are written to when writing to protocol.

Squash with: D10448551

Reviewed By: abhinav04sharma

Differential Revision: D10468715

fbshipit-source-id: f46b61f
  • Loading branch information
lth authored and facebook-github-bot committed Oct 19, 2018
1 parent b38db08 commit cc10814
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sql/rpl_master.cc
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,8 @@ bool show_slave_hosts(THD* thd)
char *replication_status = si->thd->query();
if (replication_status)
protocol->store(replication_status, &my_charset_bin);
else
protocol->store("", &my_charset_bin);

if (protocol->write())
{
Expand Down

0 comments on commit cc10814

Please sign in to comment.