Skip to content

Commit 67a3ddf

Browse files
committed
Merge branch 'merge-xtradb-5.5' into 5.5
2 parents c581ae0 + 40e9560 commit 67a3ddf

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

storage/xtradb/handler/ha_innodb.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11718,10 +11718,8 @@ ha_innobase::cmp_ref(
1171811718
len1 = innobase_read_from_2_little_endian(ref1);
1171911719
len2 = innobase_read_from_2_little_endian(ref2);
1172011720

11721-
ref1 += 2;
11722-
ref2 += 2;
11723-
result = ((Field_blob*)field)->cmp( ref1, len1,
11724-
ref2, len2);
11721+
result = ((Field_blob*)field)->cmp(ref1 + 2, len1,
11722+
ref2 + 2, len2);
1172511723
} else {
1172611724
result = field->key_cmp(ref1, ref2);
1172711725
}

storage/xtradb/include/univ.i

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ 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

70-
#define INNODB_VERSION_STR "5.5.41-MariaDB-" IB_TO_STR(PERCONA_INNODB_VERSION)
70+
#define INNODB_VERSION_STR "5.5.42-MariaDB-" IB_TO_STR(PERCONA_INNODB_VERSION)
7171

7272
#define REFMAN "http://dev.mysql.com/doc/refman/" \
7373
IB_TO_STR(MYSQL_MAJOR_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
@@ -123,9 +123,16 @@ UNIV_INTERN enum srv_shutdown_state srv_shutdown_state = SRV_SHUTDOWN_NONE;
123123
static os_file_t files[1000];
124124

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

130137
/** We use this mutex to test the return value of pthread_mutex_trylock
131138
on successful locking. HP-UX does NOT return 0, though Linux et al do. */
@@ -1194,7 +1201,7 @@ init_log_online(void)
11941201
/* Create the thread that follows the redo log to output the
11951202
changed page bitmap */
11961203
os_thread_create(&srv_redo_log_follow_thread, NULL,
1197-
thread_ids + 5 + SRV_MAX_N_IO_THREADS);
1204+
thread_ids + 6 + SRV_MAX_N_IO_THREADS);
11981205
}
11991206
}
12001207

0 commit comments

Comments
 (0)