1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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.
This commit is contained in:
unknown
2003-06-06 14:13:26 +02:00
parent 98f57fbe95
commit 07d6a19955

View File

@ -302,9 +302,13 @@ void Start_log_event::print(FILE* file, bool short_form, char* last_db)
return;
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);
print_timestamp(file, &created);
if (created)
{
fprintf(file, " created ");
print_timestamp(file, &created);
}
fputc('\n', file);
fflush(file);
}