Skip to content

Commit 40e9560

Browse files
committed
percona-server-5.5.42-37.1.tar.gz
1 parent fd39c56 commit 40e9560

File tree

4 files changed

+19
-10
lines changed

4 files changed

+19
-10
lines changed

storage/xtradb/handler/ha_innodb.cc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11490,10 +11490,8 @@ ha_innobase::cmp_ref(
1149011490
len1 = innobase_read_from_2_little_endian(ref1);
1149111491
len2 = innobase_read_from_2_little_endian(ref2);
1149211492

11493-
ref1 += 2;
11494-
ref2 += 2;
11495-
result = ((Field_blob*)field)->cmp( ref1, len1,
11496-
ref2, len2);
11493+
result = ((Field_blob*)field)->cmp(ref1 + 2, len1,
11494+
ref2 + 2, len2);
1149711495
} else {
1149811496
result = field->key_cmp(ref1, ref2);
1149911497
}
@@ -13752,6 +13750,10 @@ ib_warn_row_too_big(const dict_table_t* table)
1375213750

1375313751
THD* thd = current_thd;
1375413752

13753+
if (thd == NULL) {
13754+
return;
13755+
}
13756+
1375513757
push_warning_printf(
1375613758
thd, MYSQL_ERROR::WARN_LEVEL_WARN, HA_ERR_TO_BIG_ROW,
1375713759
"Row size too large (> %lu). Changing some columns to TEXT"

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.0
67+
#define PERCONA_INNODB_VERSION 37.1
6868
#endif
6969

7070
#define INNODB_VERSION_STR MYSQL_SERVER_VERSION

storage/xtradb/lock/lock0lock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4720,7 +4720,7 @@ lock_print_info_all_transactions(
47204720
}
47214721
}
47224722

4723-
if (!srv_print_innodb_lock_monitor && !srv_show_locks_held) {
4723+
if (!srv_print_innodb_lock_monitor || !srv_show_locks_held) {
47244724
nth_trx++;
47254725
goto loop;
47264726
}

storage/xtradb/srv/srv0start.c

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,16 @@ UNIV_INTERN enum srv_shutdown_state srv_shutdown_state = SRV_SHUTDOWN_NONE;
122122
static os_file_t files[1000];
123123

124124
/** io_handler_thread parameters for thread identification */
125-
static ulint n[SRV_MAX_N_IO_THREADS + 8];
126-
/** io_handler_thread identifiers */
127-
static os_thread_id_t thread_ids[SRV_MAX_N_IO_THREADS + 8];
125+
static ulint n[SRV_MAX_N_IO_THREADS];
126+
/** io_handler_thread identifiers. The extra elements at the end are allocated
127+
as follows:
128+
SRV_MAX_N_IO_THREADS + 1: srv_master_thread
129+
SRV_MAX_N_IO_THREADS + 2: srv_lock_timeout_thread
130+
SRV_MAX_N_IO_THREADS + 3: srv_error_monitor_thread
131+
SRV_MAX_N_IO_THREADS + 4: srv_monitor_thread
132+
SRV_MAX_N_IO_THREADS + 5: srv_LRU_dump_restore_thread
133+
SRV_MAX_N_IO_THREADS + 6: srv_redo_log_follow_thread */
134+
static os_thread_id_t thread_ids[SRV_MAX_N_IO_THREADS + 7];
128135

129136
/** We use this mutex to test the return value of pthread_mutex_trylock
130137
on successful locking. HP-UX does NOT return 0, though Linux et al do. */
@@ -1184,7 +1191,7 @@ init_log_online(void)
11841191
/* Create the thread that follows the redo log to output the
11851192
changed page bitmap */
11861193
os_thread_create(&srv_redo_log_follow_thread, NULL,
1187-
thread_ids + 5 + SRV_MAX_N_IO_THREADS);
1194+
thread_ids + 6 + SRV_MAX_N_IO_THREADS);
11881195
}
11891196
}
11901197

0 commit comments

Comments
 (0)