1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00
Files
mariadb/sql
unknown 6d1081cda2 One-line fix for bug 576 (DBUG_ASSERT failure when using CHANGE MASTER TO RELAY_LOG_POS=4).
Plus a changeset which I had committed but forgot to push (and this changeset is lost on
another computer, so I recreate it here). This changeset is "user-friendly SHOW BINLOG EVENTS
and CHANGE MASTER TO when log positions < 4 are used.


sql/slave.cc:
  fix for bug 576 (DBUG_ASSERT failure when using CHANGE MASTER TO RELAY_LOG_POS=4).
sql/sql_repl.cc:
  User-friendly SHOW BINLOG EVENTS:
  SHOW BINLOG EVENTS FROM 0: currently one gets
      MASTER> show binlog events from 0;
      ERROR 1220: Error when executing command SHOW BINLOG EVENTS: Invalid log position
  so we silently convert <4 to 4.
sql/sql_yacc.yy:
  User-friendly CHANGE MASTER TO:
  presently when one does CHANGE MASTER TO MASTER_LOG_POS=0 he gets
      030425 10:12:41  Slave I/O thread: connected to master 'root@localhost:3306',  r
      eplication started in log 'gbichot-bin.013' at position 151
      030425 10:12:41  Error reading packet from server: Client requested master to st
      art replication from impossible position (server_errno=1236)
      030425 10:12:41  Got fatal error 1236: 'Client requested master to start replica
      tion from impossible position' from master when reading data from binary log
      030425 10:12:41  Slave I/O thread exiting, read up to log 'gbichot-bin.013', pos
      ition 151
      
  while she/he probably just wanted to start at the beginning of the
  binlog, which is 4. So we silently convert <4 to 4 in sql_yacc.yy
  (i.e. in the slave code; fortunately all versions have the same
  BIN_LOG_HEADER_SIZE=4 and we should not change this). See comments
  for an explaination of why we have to do this in sql_yacc.yy,
  not in sql_repl.cc.
  Same thing for CHANGE MASTER TO RELAY_LOG_POS.
sql/unireg.h:
  warning comment
2003-06-03 23:13:06 +02:00
..
2003-04-24 09:18:53 +03:00
2002-07-23 18:31:22 +03:00
2003-01-28 08:38:28 +02:00
2003-05-13 18:58:26 +03:00
2003-04-26 14:54:53 +03:00
2003-03-13 13:44:03 +01:00
2003-01-05 20:18:49 +02:00
2003-01-05 20:18:49 +02:00
2003-04-23 21:52:16 +03:00
2003-05-03 02:29:40 +03:00
2003-01-28 17:42:08 +01:00
2002-06-20 15:25:02 +03:00
2002-07-23 20:39:36 +03:00
2003-05-14 01:27:26 +03:00
2003-05-03 02:29:40 +03:00
2003-01-28 08:38:28 +02:00
2003-05-28 11:24:48 +05:00
2003-05-04 18:43:07 +02:00
2003-04-23 21:52:16 +03:00
2003-04-15 22:04:16 +03:00
2003-04-26 21:10:13 +03:00
2003-05-26 15:08:17 +03:00
2003-01-28 08:38:28 +02:00
2003-06-01 23:40:01 +03:00
2003-04-15 22:04:16 +03:00
2003-04-23 21:52:16 +03:00
2003-02-06 16:55:59 +02:00
2003-05-07 19:01:45 +03:00
2003-04-23 21:52:16 +03:00
2003-05-08 00:12:46 +03:00
2003-04-24 00:36:48 +03:00
2002-11-29 16:40:18 +02:00
2003-04-23 21:52:16 +03:00
2003-02-19 14:58:44 +01:00
2002-11-29 16:40:18 +02:00