Commit d6025745 authored by Sergei Golubchik's avatar Sergei Golubchik

Merge remote-tracking branch 'github/10.1' into 10.1

parents fce4ab0a 52837892
...@@ -4372,6 +4372,8 @@ sub extract_warning_lines ($$) { ...@@ -4372,6 +4372,8 @@ sub extract_warning_lines ($$) {
qr/InnoDB: Warning: a long semaphore wait:/, qr/InnoDB: Warning: a long semaphore wait:/,
qr/InnoDB: Disabling redo log encryption/, qr/InnoDB: Disabling redo log encryption/,
qr/InnoDB: Redo log crypto: Can't initialize to key version -1u/, qr/InnoDB: Redo log crypto: Can't initialize to key version -1u/,
qr/InnoDB: Dumping buffer pool.*/,
qr/InnoDB: Buffer pool.*/,
qr/Slave: Unknown table 't1' .* 1051/, qr/Slave: Unknown table 't1' .* 1051/,
qr/Slave SQL:.*(Internal MariaDB error code: [[:digit:]]+|Query:.*)/, qr/Slave SQL:.*(Internal MariaDB error code: [[:digit:]]+|Query:.*)/,
qr/slave SQL thread aborted/, qr/slave SQL thread aborted/,
......
...@@ -8282,13 +8282,14 @@ static void print_buffer_to_file(enum loglevel level, const char *buffer, ...@@ -8282,13 +8282,14 @@ static void print_buffer_to_file(enum loglevel level, const char *buffer,
localtime_r(&skr, &tm_tmp); localtime_r(&skr, &tm_tmp);
start=&tm_tmp; start=&tm_tmp;
fprintf(stderr, "%02d%02d%02d %2d:%02d:%02d [%s] %.*s%.*s\n", fprintf(stderr, "%d-%02d-%02d %2d:%02d:%02d %lu [%s] %.*s%.*s\n",
start->tm_year % 100, start->tm_year + 1900,
start->tm_mon+1, start->tm_mon+1,
start->tm_mday, start->tm_mday,
start->tm_hour, start->tm_hour,
start->tm_min, start->tm_min,
start->tm_sec, start->tm_sec,
(unsigned long) pthread_self(),
(level == ERROR_LEVEL ? "ERROR" : level == WARNING_LEVEL ? (level == ERROR_LEVEL ? "ERROR" : level == WARNING_LEVEL ?
"Warning" : "Note"), "Warning" : "Note"),
tag_length, tag, tag_length, tag,
......
...@@ -123,11 +123,7 @@ buf_dump_status( ...@@ -123,11 +123,7 @@ buf_dump_status(
sizeof(export_vars.innodb_buffer_pool_dump_status), sizeof(export_vars.innodb_buffer_pool_dump_status),
fmt, ap); fmt, ap);
if (severity == STATUS_NOTICE || severity == STATUS_ERR) { ib_logf((ib_log_level_t) severity, "%s", export_vars.innodb_buffer_pool_dump_status);
ut_print_timestamp(stderr);
fprintf(stderr, " InnoDB: %s\n",
export_vars.innodb_buffer_pool_dump_status);
}
va_end(ap); va_end(ap);
} }
......
...@@ -495,7 +495,8 @@ DECLARE_THREAD(io_handler_thread)( ...@@ -495,7 +495,8 @@ DECLARE_THREAD(io_handler_thread)(
segment = *((ulint*) arg); segment = *((ulint*) arg);
#ifdef UNIV_DEBUG_THREAD_CREATION #ifdef UNIV_DEBUG_THREAD_CREATION
fprintf(stderr, "Io handler thread %lu starts, id %lu\n", segment, ib_logf(IB_LOG_LEVEL_INFO,
"Io handler thread %lu starts, id %lu\n", segment,
os_thread_pf(os_thread_get_curr_id())); os_thread_pf(os_thread_get_curr_id()));
#endif #endif
...@@ -1619,53 +1620,45 @@ innobase_start_or_create_for_mysql(void) ...@@ -1619,53 +1620,45 @@ innobase_start_or_create_for_mysql(void)
} }
#ifdef UNIV_DEBUG #ifdef UNIV_DEBUG
ut_print_timestamp(stderr); ib_logf(IB_LOG_LEVEL_INFO,
fprintf(stderr, " InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!!");
" InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!!\n");
#endif #endif
#ifdef UNIV_IBUF_DEBUG #ifdef UNIV_IBUF_DEBUG
ut_print_timestamp(stderr); ib_logf(IB_LOG_LEVEL_INFO,
fprintf(stderr, " InnoDB: !!!!!!!! UNIV_IBUF_DEBUG switched on !!!!!!!!!");
" InnoDB: !!!!!!!! UNIV_IBUF_DEBUG switched on !!!!!!!!!\n");
# ifdef UNIV_IBUF_COUNT_DEBUG # ifdef UNIV_IBUF_COUNT_DEBUG
ut_print_timestamp(stderr); ib_logf(IB_LOG_LEVEL_INFO,
fprintf(stderr,
" InnoDB: !!!!!!!! UNIV_IBUF_COUNT_DEBUG switched on " " InnoDB: !!!!!!!! UNIV_IBUF_COUNT_DEBUG switched on "
"!!!!!!!!!\n"); "!!!!!!!!!");
ut_print_timestamp(stderr); ib_logf(IB_LOG_LEVEL_INFO,
fprintf(stderr, " InnoDB: Crash recovery will fail with UNIV_IBUF_COUNT_DEBUG");
" InnoDB: Crash recovery will fail with UNIV_IBUF_COUNT_DEBUG\n");
# endif # endif
#endif #endif
#ifdef UNIV_BLOB_DEBUG #ifdef UNIV_BLOB_DEBUG
fprintf(stderr, ib_logf(IB_LOG_LEVEL_INFO,
"InnoDB: !!!!!!!! UNIV_BLOB_DEBUG switched on !!!!!!!!!\n" "InnoDB: !!!!!!!! UNIV_BLOB_DEBUG switched on !!!!!!!!!\n"
"InnoDB: Server restart may fail with UNIV_BLOB_DEBUG\n"); "InnoDB: Server restart may fail with UNIV_BLOB_DEBUG");
#endif /* UNIV_BLOB_DEBUG */ #endif /* UNIV_BLOB_DEBUG */
#ifdef UNIV_SYNC_DEBUG #ifdef UNIV_SYNC_DEBUG
ut_print_timestamp(stderr); ib_logf(IB_LOG_LEVEL_INFO,
fprintf(stderr, " InnoDB: !!!!!!!! UNIV_SYNC_DEBUG switched on !!!!!!!!!");
" InnoDB: !!!!!!!! UNIV_SYNC_DEBUG switched on !!!!!!!!!\n");
#endif #endif
#ifdef UNIV_SEARCH_DEBUG #ifdef UNIV_SEARCH_DEBUG
ut_print_timestamp(stderr); ib_logf(IB_LOG_LEVEL_INFO,
fprintf(stderr, " InnoDB: !!!!!!!! UNIV_SEARCH_DEBUG switched on !!!!!!!!!");
" InnoDB: !!!!!!!! UNIV_SEARCH_DEBUG switched on !!!!!!!!!\n");
#endif #endif
#ifdef UNIV_LOG_LSN_DEBUG #ifdef UNIV_LOG_LSN_DEBUG
ut_print_timestamp(stderr); ib_logf(IB_LOG_LEVEL_INFO,
fprintf(stderr, " InnoDB: !!!!!!!! UNIV_LOG_LSN_DEBUG switched on !!!!!!!!!");
" InnoDB: !!!!!!!! UNIV_LOG_LSN_DEBUG switched on !!!!!!!!!\n");
#endif /* UNIV_LOG_LSN_DEBUG */ #endif /* UNIV_LOG_LSN_DEBUG */
#ifdef UNIV_MEM_DEBUG #ifdef UNIV_MEM_DEBUG
ut_print_timestamp(stderr); ib_logf(IB_LOG_LEVEL_INFO,
fprintf(stderr, " InnoDB: !!!!!!!! UNIV_MEM_DEBUG switched on !!!!!!!!!");
" InnoDB: !!!!!!!! UNIV_MEM_DEBUG switched on !!!!!!!!!\n");
#endif #endif
if (srv_use_sys_malloc) { if (srv_use_sys_malloc) {
......
...@@ -123,11 +123,7 @@ buf_dump_status( ...@@ -123,11 +123,7 @@ buf_dump_status(
sizeof(export_vars.innodb_buffer_pool_dump_status), sizeof(export_vars.innodb_buffer_pool_dump_status),
fmt, ap); fmt, ap);
if (severity == STATUS_NOTICE || severity == STATUS_ERR) { ib_logf((ib_log_level_t) severity, "%s", export_vars.innodb_buffer_pool_dump_status);
ut_print_timestamp(stderr);
fprintf(stderr, " InnoDB: %s\n",
export_vars.innodb_buffer_pool_dump_status);
}
va_end(ap); va_end(ap);
} }
......
...@@ -522,7 +522,8 @@ DECLARE_THREAD(io_handler_thread)( ...@@ -522,7 +522,8 @@ DECLARE_THREAD(io_handler_thread)(
os_thread_set_priority(srv_io_tids[tid_i], srv_sched_priority_io); os_thread_set_priority(srv_io_tids[tid_i], srv_sched_priority_io);
#ifdef UNIV_DEBUG_THREAD_CREATION #ifdef UNIV_DEBUG_THREAD_CREATION
fprintf(stderr, "Io handler thread %lu starts, id %lu\n", segment, ib_logf(IB_LOG_LEVEL_INFO,
"Io handler thread %lu starts, id %lu\n", segment,
os_thread_pf(os_thread_get_curr_id())); os_thread_pf(os_thread_get_curr_id()));
#endif #endif
...@@ -1698,53 +1699,45 @@ innobase_start_or_create_for_mysql(void) ...@@ -1698,53 +1699,45 @@ innobase_start_or_create_for_mysql(void)
} }
#ifdef UNIV_DEBUG #ifdef UNIV_DEBUG
ut_print_timestamp(stderr); ib_logf(IB_LOG_LEVEL_INFO,
fprintf(stderr, " InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!!");
" InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!!\n");
#endif #endif
#ifdef UNIV_IBUF_DEBUG #ifdef UNIV_IBUF_DEBUG
ut_print_timestamp(stderr); ib_logf(IB_LOG_LEVEL_INFO,
fprintf(stderr, " InnoDB: !!!!!!!! UNIV_IBUF_DEBUG switched on !!!!!!!!!");
" InnoDB: !!!!!!!! UNIV_IBUF_DEBUG switched on !!!!!!!!!\n");
# ifdef UNIV_IBUF_COUNT_DEBUG # ifdef UNIV_IBUF_COUNT_DEBUG
ut_print_timestamp(stderr); ib_logf(IB_LOG_LEVEL_INFO,
fprintf(stderr,
" InnoDB: !!!!!!!! UNIV_IBUF_COUNT_DEBUG switched on " " InnoDB: !!!!!!!! UNIV_IBUF_COUNT_DEBUG switched on "
"!!!!!!!!!\n"); "!!!!!!!!!");
ut_print_timestamp(stderr); ib_logf(IB_LOG_LEVEL_INFO,
fprintf(stderr, " InnoDB: Crash recovery will fail with UNIV_IBUF_COUNT_DEBUG");
" InnoDB: Crash recovery will fail with UNIV_IBUF_COUNT_DEBUG\n");
# endif # endif
#endif #endif
#ifdef UNIV_BLOB_DEBUG #ifdef UNIV_BLOB_DEBUG
fprintf(stderr, ib_logf(IB_LOG_LEVEL_INFO,
"InnoDB: !!!!!!!! UNIV_BLOB_DEBUG switched on !!!!!!!!!\n" "InnoDB: !!!!!!!! UNIV_BLOB_DEBUG switched on !!!!!!!!!\n"
"InnoDB: Server restart may fail with UNIV_BLOB_DEBUG\n"); "InnoDB: Server restart may fail with UNIV_BLOB_DEBUG");
#endif /* UNIV_BLOB_DEBUG */ #endif /* UNIV_BLOB_DEBUG */
#ifdef UNIV_SYNC_DEBUG #ifdef UNIV_SYNC_DEBUG
ut_print_timestamp(stderr); ib_logf(IB_LOG_LEVEL_INFO,
fprintf(stderr, " InnoDB: !!!!!!!! UNIV_SYNC_DEBUG switched on !!!!!!!!!");
" InnoDB: !!!!!!!! UNIV_SYNC_DEBUG switched on !!!!!!!!!\n");
#endif #endif
#ifdef UNIV_SEARCH_DEBUG #ifdef UNIV_SEARCH_DEBUG
ut_print_timestamp(stderr); ib_logf(IB_LOG_LEVEL_INFO,
fprintf(stderr, " InnoDB: !!!!!!!! UNIV_SEARCH_DEBUG switched on !!!!!!!!!");
" InnoDB: !!!!!!!! UNIV_SEARCH_DEBUG switched on !!!!!!!!!\n");
#endif #endif
#ifdef UNIV_LOG_LSN_DEBUG #ifdef UNIV_LOG_LSN_DEBUG
ut_print_timestamp(stderr); ib_logf(IB_LOG_LEVEL_INFO,
fprintf(stderr, " InnoDB: !!!!!!!! UNIV_LOG_LSN_DEBUG switched on !!!!!!!!!");
" InnoDB: !!!!!!!! UNIV_LOG_LSN_DEBUG switched on !!!!!!!!!\n");
#endif /* UNIV_LOG_LSN_DEBUG */ #endif /* UNIV_LOG_LSN_DEBUG */
#ifdef UNIV_MEM_DEBUG #ifdef UNIV_MEM_DEBUG
ut_print_timestamp(stderr); ib_logf(IB_LOG_LEVEL_INFO,
fprintf(stderr, " InnoDB: !!!!!!!! UNIV_MEM_DEBUG switched on !!!!!!!!!");
" InnoDB: !!!!!!!! UNIV_MEM_DEBUG switched on !!!!!!!!!\n");
#endif #endif
if (srv_use_sys_malloc) { if (srv_use_sys_malloc) {
......
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