1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

fix for BUG#691 (4.0 mysqlbinlog couldn't read 3.23 binlog).

Safe parenthesis.
This commit is contained in:
guilhem@mysql.com
2003-06-20 15:48:52 +02:00
parent def18de12c
commit e8a8b8c346

View File

@@ -396,8 +396,8 @@ static int check_header(IO_CACHE* file)
if (buf[4] == START_EVENT) if (buf[4] == START_EVENT)
{ {
uint event_len; uint event_len;
event_len = uint4korr(buf + 4); event_len = uint4korr(buf + EVENT_LEN_OFFSET);
old_format = (event_len < LOG_EVENT_HEADER_LEN + START_HEADER_LEN); old_format = (event_len < (LOG_EVENT_HEADER_LEN + START_HEADER_LEN));
} }
} }
my_b_seek(file, pos); my_b_seek(file, pos);