Comment 3 for bug 1470273

Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

Relay log is a plain text file. Its contents updated in memory first (8k buffer) and then flushed to file. MySQL opens file for write, seek to the beginning of file and writes the buffer to the file. If contents of the buffer is shorter than current contents of relay-log.info (for example, slave switched to the next relay log and position become 2-digits instead of 10-digits), then extra garbage at the end of relay-log.info appear.

This however should not lead to corruption of relay-log.info, because does not read the garbage at the end of relay-log.info.