From 07d6a199557308f49a8e700de95747f638b7dccd Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 6 Jun 2003 14:13:26 +0200 Subject: [PATCH] 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. --- sql/log_event.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sql/log_event.cc b/sql/log_event.cc index 1c9c48e2d93..62d6bef3a51 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -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); }