MySQL Forums
Forum List  »  InnoDB

What's the format of the redo log record?
Posted by: Jiamin Huang
Date: November 14, 2014 06:33PM

Hi all,

I've been reading the source code and trying to figure what exactly the format of the redo log record is. I found some articles talking about this, but they are different from what I find in the source code.

The articles I found says that the format of the redo log records is:
<space id, page no, operation code, data>

This is straightforward and easy to understand. However, this is different from what I found in the source code, which is

Type, Space ID, Page No, Page offset, Value.

How does this format give you information on how to redo the operation? Most of the times the value is only 4 bytes, but an insert query can easily insert data whose size is more than 4 bytes, right?

Can someone please give me an example of how to start from a query like an insert and finally generate the corresponding redo log records?

Options: ReplyQuote


Subject
Views
Written By
Posted
What's the format of the redo log record?
1687
November 14, 2014 06:33PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.