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
e316c46f
Commit
e316c46f
authored
Aug 03, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5.5.50-38.0
parent
f54dcf1e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
21 deletions
+35
-21
storage/xtradb/include/log0online.h
storage/xtradb/include/log0online.h
+2
-2
storage/xtradb/include/univ.i
storage/xtradb/include/univ.i
+1
-1
storage/xtradb/log/log0online.c
storage/xtradb/log/log0online.c
+2
-2
storage/xtradb/log/log0recv.c
storage/xtradb/log/log0recv.c
+30
-16
No files found.
storage/xtradb/include/log0online.h
View file @
e316c46f
...
...
@@ -11,8 +11,8 @@ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 5
9 Temple
Place, Suite 330, Boston, MA 02111-1307
USA
this program; if not, write to the Free Software Foundation, Inc., 5
1 Franklin
Street, Fifth Floor, Boston, MA 02110-1301,
USA
*****************************************************************************/
...
...
storage/xtradb/include/univ.i
View file @
e316c46f
...
...
@@ -64,7 +64,7 @@ component, i.e. we show M.N.P as M.N */
(
INNODB_VERSION_MAJOR
<<
8
|
INNODB_VERSION_MINOR
)
#
ifndef
PERCONA_INNODB_VERSION
#
define
PERCONA_INNODB_VERSION
3
7.9
#
define
PERCONA_INNODB_VERSION
3
8.0
#
endif
#
define
INNODB_VERSION_STR
MYSQL_SERVER_VERSION
...
...
storage/xtradb/log/log0online.c
View file @
e316c46f
...
...
@@ -11,8 +11,8 @@ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 5
9 Temple
Place, Suite 330, Boston, MA 02111-1307
USA
this program; if not, write to the Free Software Foundation, Inc., 5
1 Franklin
Street, Fifth Floor, Boston, MA 02110-1301,
USA
*****************************************************************************/
...
...
storage/xtradb/log/log0recv.c
View file @
e316c46f
...
...
@@ -659,6 +659,7 @@ recv_check_cp_is_consistent(
}
#ifndef UNIV_HOTBACKUP
/********************************************************//**
Looks for the maximum consistent checkpoint from the log groups.
@return error code or DB_SUCCESS */
...
...
@@ -685,8 +686,37 @@ recv_find_max_checkpoint(
buf
=
log_sys
->
checkpoint_buf
;
while
(
group
)
{
ulint
log_hdr_log_block_size
;
group
->
state
=
LOG_GROUP_CORRUPTED
;
/* Assert that we can reuse log_sys->checkpoint_buf to read the
part of the header that contains the log block size. */
ut_ad
(
LOG_FILE_OS_FILE_LOG_BLOCK_SIZE
+
4
<
OS_FILE_LOG_BLOCK_SIZE
);
fil_io
(
OS_FILE_READ
|
OS_FILE_LOG
,
TRUE
,
group
->
space_id
,
0
,
0
,
0
,
OS_FILE_LOG_BLOCK_SIZE
,
log_sys
->
checkpoint_buf
,
NULL
);
log_hdr_log_block_size
=
mach_read_from_4
(
log_sys
->
checkpoint_buf
+
LOG_FILE_OS_FILE_LOG_BLOCK_SIZE
);
if
(
log_hdr_log_block_size
==
0
)
{
/* 0 means default value */
log_hdr_log_block_size
=
512
;
}
if
(
log_hdr_log_block_size
!=
srv_log_block_size
)
{
fprintf
(
stderr
,
"InnoDB: Error: The block size of ib_logfile "
"%lu is not equal to innodb_log_block_size "
"%lu.
\n
"
"InnoDB: Error: Suggestion - Recreate log "
"files.
\n
"
,
log_hdr_log_block_size
,
srv_log_block_size
);
return
(
DB_ERROR
);
}
for
(
field
=
LOG_CHECKPOINT_1
;
field
<=
LOG_CHECKPOINT_2
;
field
+=
LOG_CHECKPOINT_2
-
LOG_CHECKPOINT_1
)
{
...
...
@@ -2982,7 +3012,6 @@ recv_recovery_from_checkpoint_start_func(
log_group_t
*
max_cp_group
;
log_group_t
*
up_to_date_group
;
ulint
max_cp_field
;
ulint
log_hdr_log_block_size
;
ib_uint64_t
checkpoint_lsn
;
ib_uint64_t
checkpoint_no
;
ib_uint64_t
old_scanned_lsn
;
...
...
@@ -3085,21 +3114,6 @@ recv_recovery_from_checkpoint_start_func(
log_hdr_buf
,
max_cp_group
);
}
log_hdr_log_block_size
=
mach_read_from_4
(
log_hdr_buf
+
LOG_FILE_OS_FILE_LOG_BLOCK_SIZE
);
if
(
log_hdr_log_block_size
==
0
)
{
/* 0 means default value */
log_hdr_log_block_size
=
512
;
}
if
(
log_hdr_log_block_size
!=
srv_log_block_size
)
{
fprintf
(
stderr
,
"InnoDB: Error: The block size of ib_logfile (%lu) "
"is not equal to innodb_log_block_size.
\n
"
"InnoDB: Error: Suggestion - Recreate log files.
\n
"
,
log_hdr_log_block_size
);
return
(
DB_ERROR
);
}
#ifdef UNIV_LOG_ARCHIVE
group
=
UT_LIST_GET_FIRST
(
log_sys
->
log_groups
);
...
...
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