From dc394cb9b5f0fafd55c2398d929fc1229b452f76 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 24 Apr 2001 17:39:26 -0600 Subject: fixed redundant repetition of use db in mysqlbinlog added support for virtual master ( replicating from a directory with binlogs) test case for backup/restore with virtual master client/mysqltest.c: fix to accomodate for new test case mysql-test/mysql-test-run.sh: do not automagically start slave sql/log.cc: support for virtual master sql/log_event.cc: fix for mysqlbinlog sql/log_event.h: fix for mysqlbinlog sql/mysqlbinlog.cc: fix for mysqlbinlog sql/slave.cc: virtual master sql/slave.h: virtual master sql/sql_class.h: clean-up/fixes for virtual master sql/sql_repl.cc: cleanup/fixes for virtual master sql/sql_repl.h: virtual master --- sql/log_event.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sql/log_event.h') diff --git a/sql/log_event.h b/sql/log_event.h index 0f4945bae3c..41f847e8d92 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -100,7 +100,7 @@ public: virtual ~Log_event() {} virtual int get_data_size() { return 0;} - virtual void print(FILE* file, bool short_form = 0) = 0; + virtual void print(FILE* file, bool short_form = 0, char* last_db = 0) = 0; void print_timestamp(FILE* file, time_t *ts = 0); void print_header(FILE* file); @@ -169,7 +169,7 @@ public: ; } - void print(FILE* file, bool short_form = 0); + void print(FILE* file, bool short_form = 0, char* last_db = 0); }; #define DUMPFILE_FLAG 0x1 @@ -312,7 +312,7 @@ public: ; } - void print(FILE* file, bool short_form = 0); + void print(FILE* file, bool short_form = 0, char* last_db = 0); }; extern char server_version[SERVER_VERSION_LENGTH]; @@ -350,7 +350,7 @@ public: // sizeof(binlog_version) + sizeof(server_version) sizeof(created) return 2 + sizeof(server_version) + 4; } - void print(FILE* file, bool short_form = 0); + void print(FILE* file, bool short_form = 0, char* last_db = 0); }; class Intvar_log_event: public Log_event @@ -369,7 +369,7 @@ public: int write_data(IO_CACHE* file); - void print(FILE* file, bool short_form = 0); + void print(FILE* file, bool short_form = 0, char* last_db = 0); }; class Stop_log_event: public Log_event @@ -388,7 +388,7 @@ public: } ~Stop_log_event() {} Log_event_type get_type_code() { return STOP_EVENT;} - void print(FILE* file, bool short_form = 0); + void print(FILE* file, bool short_form = 0, char* last_db = 0); }; class Rotate_log_event: public Log_event @@ -416,7 +416,7 @@ public: int get_data_size() { return ident_len;} int write_data(IO_CACHE* file); - void print(FILE* file, bool short_form = 0); + void print(FILE* file, bool short_form = 0, char* last_db = 0); }; #endif -- cgit v1.2.1