mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
Merge 10.2 into 10.3
This commit is contained in:
commit
0f83c8878d
155 changed files with 6012 additions and 2225 deletions
|
|
@ -3856,7 +3856,14 @@ my_bool translog_init_with_table(const char *directory,
|
|||
my_bool pageok;
|
||||
|
||||
DBUG_PRINT("info", ("The log is really present"));
|
||||
DBUG_ASSERT(sure_page <= last_page);
|
||||
if (sure_page > last_page)
|
||||
{
|
||||
my_printf_error(HA_ERR_GENERIC, "Aria engine: log data error\n"
|
||||
"last_log_page: " LSN_FMT " is less than\n"
|
||||
"checkpoint page: " LSN_FMT, MYF(0),
|
||||
LSN_IN_PARTS(last_page), LSN_IN_PARTS(sure_page));
|
||||
goto err;
|
||||
}
|
||||
|
||||
/* TODO: check page size */
|
||||
|
||||
|
|
@ -4004,7 +4011,7 @@ my_bool translog_init_with_table(const char *directory,
|
|||
if (!logs_found)
|
||||
{
|
||||
TRANSLOG_FILE *file= (TRANSLOG_FILE*)my_malloc(sizeof(TRANSLOG_FILE),
|
||||
MYF(0));
|
||||
MYF(MY_WME));
|
||||
DBUG_PRINT("info", ("The log is not found => we will create new log"));
|
||||
if (file == NULL)
|
||||
goto err;
|
||||
|
|
@ -5326,7 +5333,7 @@ static uchar *translog_put_LSN_diff(LSN base_lsn, LSN lsn, uchar *dst)
|
|||
{
|
||||
uint64 diff;
|
||||
DBUG_ENTER("translog_put_LSN_diff");
|
||||
DBUG_PRINT("enter", ("Base: " LSN_FMT " val: " LSN_FMT " dst:%p",
|
||||
DBUG_PRINT("enter", ("Base: " LSN_FMT " val: " LSN_FMT " dst: %p",
|
||||
LSN_IN_PARTS(base_lsn), LSN_IN_PARTS(lsn),
|
||||
dst));
|
||||
DBUG_ASSERT(base_lsn > lsn);
|
||||
|
|
@ -5372,7 +5379,7 @@ static uchar *translog_put_LSN_diff(LSN base_lsn, LSN lsn, uchar *dst)
|
|||
dst[1]= 1;
|
||||
lsn_store(dst + 2, lsn);
|
||||
}
|
||||
DBUG_PRINT("info", ("new dst:%p", dst));
|
||||
DBUG_PRINT("info", ("new dst: %p", dst));
|
||||
DBUG_RETURN(dst);
|
||||
}
|
||||
|
||||
|
|
@ -7991,7 +7998,7 @@ void translog_flush_buffers(TRANSLOG_ADDRESS *lsn,
|
|||
{
|
||||
struct st_translog_buffer *buffer= log_descriptor.buffers + i;
|
||||
translog_buffer_lock(buffer);
|
||||
DBUG_PRINT("info", ("Check buffer:%p #: %u "
|
||||
DBUG_PRINT("info", ("Check buffer: %p #: %u "
|
||||
"prev last LSN: " LSN_FMT " "
|
||||
"last LSN: " LSN_FMT " status: %s",
|
||||
buffer,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue