Skip to content

Commit eaa782f

Browse files
santoshbandaFacebook Github Bot
authored andcommitted
Change the format of output when using opt_print_gtids
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
1 parent b927ffe commit eaa782f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

client/mysqlbinlog.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4128,6 +4128,10 @@ int main(int argc, char** argv)
41284128
char *encountered_gtids = gtid_set_excluded->to_string();
41294129
if (encountered_gtids)
41304130
{
4131+
// Replace new lines with spaces. Easy for parsing the output.
4132+
for (char *ptr = encountered_gtids; *ptr; ++ptr) {
4133+
if (*ptr == '\n') *ptr = ' ';
4134+
}
41314135
fprintf(stderr, "Executed gtids: %s\n", encountered_gtids);
41324136
my_free(encountered_gtids);
41334137
}

0 commit comments

Comments
 (0)