Commit f0c0b8d3 authored by unknown's avatar unknown

comments fixed


storage/maria/ma_loghandler.c:
  The function comment fixed.
storage/maria/ma_loghandler_lsn.h:
  Comment of LSN/TRANSLOG_ADDRESS type fixed
parent 76410eb3
...@@ -4679,8 +4679,6 @@ translog_read_record_header_from_buffer(byte *page, ...@@ -4679,8 +4679,6 @@ translog_read_record_header_from_buffer(byte *page,
buff log record header buffer buff log record header buffer
NOTE NOTE
- lsn can point to TRANSLOG_HEADER_BUFFER::lsn and it will be processed
correctly.
- Some type of record can be read completely by this call - Some type of record can be read completely by this call
- "Decoded" header stored in TRANSLOG_HEADER_BUFFER::header (relative - "Decoded" header stored in TRANSLOG_HEADER_BUFFER::header (relative
LSN can be translated to absolute one), some fields can be added LSN can be translated to absolute one), some fields can be added
...@@ -4786,6 +4784,7 @@ translog_read_record_header_scan(TRANSLOG_SCANNER_DATA ...@@ -4786,6 +4784,7 @@ translog_read_record_header_scan(TRANSLOG_SCANNER_DATA
its NOTES. its NOTES.
- in case of end of the log buff->lsn will be set to - in case of end of the log buff->lsn will be set to
(CONTROL_FILE_IMPOSSIBLE_LSN) (CONTROL_FILE_IMPOSSIBLE_LSN)
RETURN RETURN
0 error 0 error
TRANSLOG_RECORD_HEADER_MAX_SIZE + 1 End of the log TRANSLOG_RECORD_HEADER_MAX_SIZE + 1 End of the log
......
#ifndef _ma_loghandler_lsn_h #ifndef _ma_loghandler_lsn_h
#define _ma_loghandler_lsn_h #define _ma_loghandler_lsn_h
/* Transaction log record address (file_no is int24 on the disk) */ /*
Transaction log record address:
file_no << 32 | offset
file_no is only 3 bytes so we can use signed integer to make
comparison more simple.
*/
typedef int64 TRANSLOG_ADDRESS; typedef int64 TRANSLOG_ADDRESS;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment