Skip to content

Commit

Permalink
Change the format of output when using opt_print_gtids
Browse files Browse the repository at this point in the history
Summary:
This will make it easy for parsing the output.
Closes #413

Reviewed By: abhinav04sharma

Differential Revision: D4165245

Pulled By: santoshbanda

fbshipit-source-id: da18ded
  • Loading branch information
santoshbanda authored and Facebook Github Bot committed Nov 11, 2016
1 parent b927ffe commit eaa782f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/mysqlbinlog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4128,6 +4128,10 @@ int main(int argc, char** argv)
char *encountered_gtids = gtid_set_excluded->to_string();
if (encountered_gtids)
{
// Replace new lines with spaces. Easy for parsing the output.
for (char *ptr = encountered_gtids; *ptr; ++ptr) {
if (*ptr == '\n') *ptr = ' ';
}
fprintf(stderr, "Executed gtids: %s\n", encountered_gtids);
my_free(encountered_gtids);
}
Expand Down

0 comments on commit eaa782f

Please sign in to comment.