Skip to content

Commit e316c46

Browse files
committed
5.5.50-38.0
1 parent f54dcf1 commit e316c46

File tree

4 files changed

+35
-21
lines changed

4 files changed

+35
-21
lines changed

storage/xtradb/include/log0online.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1111
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1212
1313
You should have received a copy of the GNU General Public License along with
14-
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15-
Place, Suite 330, Boston, MA 02111-1307 USA
14+
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15+
Street, Fifth Floor, Boston, MA 02110-1301, USA
1616
1717
*****************************************************************************/
1818

storage/xtradb/include/univ.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ component, i.e. we show M.N.P as M.N */
6464
(INNODB_VERSION_MAJOR << 8 | INNODB_VERSION_MINOR)
6565

6666
#ifndef PERCONA_INNODB_VERSION
67-
#define PERCONA_INNODB_VERSION 37.9
67+
#define PERCONA_INNODB_VERSION 38.0
6868
#endif
6969

7070
#define INNODB_VERSION_STR MYSQL_SERVER_VERSION

storage/xtradb/log/log0online.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1111
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1212
1313
You should have received a copy of the GNU General Public License along with
14-
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15-
Place, Suite 330, Boston, MA 02111-1307 USA
14+
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15+
Street, Fifth Floor, Boston, MA 02110-1301, USA
1616
1717
*****************************************************************************/
1818

storage/xtradb/log/log0recv.c

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,7 @@ recv_check_cp_is_consistent(
659659
}
660660

661661
#ifndef UNIV_HOTBACKUP
662+
662663
/********************************************************//**
663664
Looks for the maximum consistent checkpoint from the log groups.
664665
@return error code or DB_SUCCESS */
@@ -685,8 +686,37 @@ recv_find_max_checkpoint(
685686
buf = log_sys->checkpoint_buf;
686687

687688
while (group) {
689+
690+
ulint log_hdr_log_block_size;
691+
688692
group->state = LOG_GROUP_CORRUPTED;
689693

694+
/* Assert that we can reuse log_sys->checkpoint_buf to read the
695+
part of the header that contains the log block size. */
696+
ut_ad(LOG_FILE_OS_FILE_LOG_BLOCK_SIZE + 4
697+
< OS_FILE_LOG_BLOCK_SIZE);
698+
699+
fil_io(OS_FILE_READ | OS_FILE_LOG, TRUE, group->space_id, 0,
700+
0, 0, OS_FILE_LOG_BLOCK_SIZE,
701+
log_sys->checkpoint_buf, NULL);
702+
log_hdr_log_block_size
703+
= mach_read_from_4(log_sys->checkpoint_buf
704+
+ LOG_FILE_OS_FILE_LOG_BLOCK_SIZE);
705+
if (log_hdr_log_block_size == 0) {
706+
/* 0 means default value */
707+
log_hdr_log_block_size = 512;
708+
}
709+
if (log_hdr_log_block_size != srv_log_block_size) {
710+
fprintf(stderr,
711+
"InnoDB: Error: The block size of ib_logfile "
712+
"%lu is not equal to innodb_log_block_size "
713+
"%lu.\n"
714+
"InnoDB: Error: Suggestion - Recreate log "
715+
"files.\n",
716+
log_hdr_log_block_size, srv_log_block_size);
717+
return(DB_ERROR);
718+
}
719+
690720
for (field = LOG_CHECKPOINT_1; field <= LOG_CHECKPOINT_2;
691721
field += LOG_CHECKPOINT_2 - LOG_CHECKPOINT_1) {
692722

@@ -2982,7 +3012,6 @@ recv_recovery_from_checkpoint_start_func(
29823012
log_group_t* max_cp_group;
29833013
log_group_t* up_to_date_group;
29843014
ulint max_cp_field;
2985-
ulint log_hdr_log_block_size;
29863015
ib_uint64_t checkpoint_lsn;
29873016
ib_uint64_t checkpoint_no;
29883017
ib_uint64_t old_scanned_lsn;
@@ -3085,21 +3114,6 @@ recv_recovery_from_checkpoint_start_func(
30853114
log_hdr_buf, max_cp_group);
30863115
}
30873116

3088-
log_hdr_log_block_size
3089-
= mach_read_from_4(log_hdr_buf + LOG_FILE_OS_FILE_LOG_BLOCK_SIZE);
3090-
if (log_hdr_log_block_size == 0) {
3091-
/* 0 means default value */
3092-
log_hdr_log_block_size = 512;
3093-
}
3094-
if (log_hdr_log_block_size != srv_log_block_size) {
3095-
fprintf(stderr,
3096-
"InnoDB: Error: The block size of ib_logfile (%lu) "
3097-
"is not equal to innodb_log_block_size.\n"
3098-
"InnoDB: Error: Suggestion - Recreate log files.\n",
3099-
log_hdr_log_block_size);
3100-
return(DB_ERROR);
3101-
}
3102-
31033117
#ifdef UNIV_LOG_ARCHIVE
31043118
group = UT_LIST_GET_FIRST(log_sys->log_groups);
31053119

0 commit comments

Comments
 (0)