Commit 40e95608 authored by Sergei Golubchik's avatar Sergei Golubchik

percona-server-5.5.42-37.1.tar.gz

parent fd39c56e
...@@ -11490,10 +11490,8 @@ ha_innobase::cmp_ref( ...@@ -11490,10 +11490,8 @@ ha_innobase::cmp_ref(
len1 = innobase_read_from_2_little_endian(ref1); len1 = innobase_read_from_2_little_endian(ref1);
len2 = innobase_read_from_2_little_endian(ref2); len2 = innobase_read_from_2_little_endian(ref2);
ref1 += 2; result = ((Field_blob*)field)->cmp(ref1 + 2, len1,
ref2 += 2; ref2 + 2, len2);
result = ((Field_blob*)field)->cmp( ref1, len1,
ref2, len2);
} else { } else {
result = field->key_cmp(ref1, ref2); result = field->key_cmp(ref1, ref2);
} }
...@@ -13752,6 +13750,10 @@ ib_warn_row_too_big(const dict_table_t* table) ...@@ -13752,6 +13750,10 @@ ib_warn_row_too_big(const dict_table_t* table)
THD* thd = current_thd; THD* thd = current_thd;
if (thd == NULL) {
return;
}
push_warning_printf( push_warning_printf(
thd, MYSQL_ERROR::WARN_LEVEL_WARN, HA_ERR_TO_BIG_ROW, thd, MYSQL_ERROR::WARN_LEVEL_WARN, HA_ERR_TO_BIG_ROW,
"Row size too large (> %lu). Changing some columns to TEXT" "Row size too large (> %lu). Changing some columns to TEXT"
......
...@@ -64,7 +64,7 @@ component, i.e. we show M.N.P as M.N */ ...@@ -64,7 +64,7 @@ component, i.e. we show M.N.P as M.N */
(INNODB_VERSION_MAJOR << 8 | INNODB_VERSION_MINOR) (INNODB_VERSION_MAJOR << 8 | INNODB_VERSION_MINOR)
#ifndef PERCONA_INNODB_VERSION #ifndef PERCONA_INNODB_VERSION
#define PERCONA_INNODB_VERSION 37.0 #define PERCONA_INNODB_VERSION 37.1
#endif #endif
#define INNODB_VERSION_STR MYSQL_SERVER_VERSION #define INNODB_VERSION_STR MYSQL_SERVER_VERSION
......
...@@ -4720,7 +4720,7 @@ loop: ...@@ -4720,7 +4720,7 @@ loop:
} }
} }
if (!srv_print_innodb_lock_monitor && !srv_show_locks_held) { if (!srv_print_innodb_lock_monitor || !srv_show_locks_held) {
nth_trx++; nth_trx++;
goto loop; goto loop;
} }
......
...@@ -122,9 +122,16 @@ UNIV_INTERN enum srv_shutdown_state srv_shutdown_state = SRV_SHUTDOWN_NONE; ...@@ -122,9 +122,16 @@ UNIV_INTERN enum srv_shutdown_state srv_shutdown_state = SRV_SHUTDOWN_NONE;
static os_file_t files[1000]; static os_file_t files[1000];
/** io_handler_thread parameters for thread identification */ /** io_handler_thread parameters for thread identification */
static ulint n[SRV_MAX_N_IO_THREADS + 8]; static ulint n[SRV_MAX_N_IO_THREADS];
/** io_handler_thread identifiers */ /** io_handler_thread identifiers. The extra elements at the end are allocated
static os_thread_id_t thread_ids[SRV_MAX_N_IO_THREADS + 8]; as follows:
SRV_MAX_N_IO_THREADS + 1: srv_master_thread
SRV_MAX_N_IO_THREADS + 2: srv_lock_timeout_thread
SRV_MAX_N_IO_THREADS + 3: srv_error_monitor_thread
SRV_MAX_N_IO_THREADS + 4: srv_monitor_thread
SRV_MAX_N_IO_THREADS + 5: srv_LRU_dump_restore_thread
SRV_MAX_N_IO_THREADS + 6: srv_redo_log_follow_thread */
static os_thread_id_t thread_ids[SRV_MAX_N_IO_THREADS + 7];
/** We use this mutex to test the return value of pthread_mutex_trylock /** We use this mutex to test the return value of pthread_mutex_trylock
on successful locking. HP-UX does NOT return 0, though Linux et al do. */ on successful locking. HP-UX does NOT return 0, though Linux et al do. */
...@@ -1184,7 +1191,7 @@ init_log_online(void) ...@@ -1184,7 +1191,7 @@ init_log_online(void)
/* Create the thread that follows the redo log to output the /* Create the thread that follows the redo log to output the
changed page bitmap */ changed page bitmap */
os_thread_create(&srv_redo_log_follow_thread, NULL, os_thread_create(&srv_redo_log_follow_thread, NULL,
thread_ids + 5 + SRV_MAX_N_IO_THREADS); thread_ids + 6 + SRV_MAX_N_IO_THREADS);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment