Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9ac8be4e
Commit
9ac8be4e
authored
Nov 08, 2022
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include some advice in the crash-upgrade message
parent
95e2595d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
storage/innobase/log/log0recv.cc
storage/innobase/log/log0recv.cc
+13
-9
No files found.
storage/innobase/log/log0recv.cc
View file @
9ac8be4e
...
...
@@ -58,6 +58,7 @@ Created 9/20/1997 Heikki Tuuri
#include "trx0roll.h"
#include "row0merge.h"
#include "fil0pagecompress.h"
#include "log.h"
/** Log records are stored in the hash table in chunks at most of this size;
this must be less than srv_page_size as it is stored in the buffer pool */
...
...
@@ -1137,7 +1138,7 @@ static dberr_t recv_log_format_0_recover(lsn_t lsn, bool crypt)
byte
*
buf
=
log_sys
.
buf
;
static
const
char
*
NO_UPGRADE_RECOVERY_MSG
=
"Upgrade after a crash is not supported."
"
InnoDB:
Upgrade after a crash is not supported."
" This redo log was created before MariaDB 10.2.2"
;
fil_io
(
IORequestLogRead
,
true
,
...
...
@@ -1150,21 +1151,24 @@ static dberr_t recv_log_format_0_recover(lsn_t lsn, bool crypt)
if
(
log_block_calc_checksum_format_0
(
buf
)
!=
log_block_get_checksum
(
buf
)
&&
!
log_crypt_101_read_block
(
buf
))
{
ib
::
error
()
<<
NO_UPGRADE_RECOVERY_MSG
<<
", and it appears corrupted."
;
return
(
DB_CORRUPTION
)
;
sql_print_error
(
"%s, and it appears corrupted."
,
NO_UPGRADE_RECOVERY_MSG
)
;
return
DB_CORRUPTION
;
}
if
(
log_block_get_data_len
(
buf
)
==
(
source_offset
&
(
OS_FILE_LOG_BLOCK_SIZE
-
1
)))
{
}
else
if
(
crypt
)
{
ib
::
error
()
<<
"
Cannot decrypt log for upgrading."
" The encrypted log was created"
" before MariaDB 10.2.2."
;
sql_print_error
(
"InnoDB:
Cannot decrypt log for upgrading."
" The encrypted log was created"
" before MariaDB 10.2.2."
)
;
return
DB_ERROR
;
}
else
{
ib
::
error
()
<<
NO_UPGRADE_RECOVERY_MSG
<<
"."
;
return
(
DB_ERROR
);
sql_print_error
(
"%s. You must start up and shut down"
" MariaDB 10.1 or MySQL 5.6 or earlier"
" on the data directory."
,
NO_UPGRADE_RECOVERY_MSG
);
return
DB_ERROR
;
}
/* Mark the redo log for upgrading. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment