Commit 1dccfd05 authored by guilhem@mysql.com's avatar guilhem@mysql.com

In Start_log_event::print, don't print "created 1970 etc" if created == 0.

Otherwise, we'll get questions from users about this curious 1970.
parent c1a60342
...@@ -302,9 +302,13 @@ void Start_log_event::print(FILE* file, bool short_form, char* last_db) ...@@ -302,9 +302,13 @@ void Start_log_event::print(FILE* file, bool short_form, char* last_db)
return; return;
print_header(file); print_header(file);
fprintf(file, "\tStart: binlog v %d, server v %s created ", binlog_version, fprintf(file, "\tStart: binlog v %d, server v %s", binlog_version,
server_version); server_version);
if (created)
{
fprintf(file, " created ");
print_timestamp(file, &created); print_timestamp(file, &created);
}
fputc('\n', file); fputc('\n', file);
fflush(file); fflush(file);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment