Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
59815a26
Commit
59815a26
authored
May 22, 2015
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-7484: Log Time not consistent with InnoDB errors nor with MySQL error log time format
parent
84eaf091
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
66 deletions
+45
-66
sql/log.cc
sql/log.cc
+3
-2
storage/innobase/buf/buf0dump.cc
storage/innobase/buf/buf0dump.cc
+1
-5
storage/innobase/srv/srv0start.cc
storage/innobase/srv/srv0start.cc
+20
-27
storage/xtradb/buf/buf0dump.cc
storage/xtradb/buf/buf0dump.cc
+1
-5
storage/xtradb/srv/srv0start.cc
storage/xtradb/srv/srv0start.cc
+20
-27
No files found.
sql/log.cc
View file @
59815a26
...
...
@@ -8269,13 +8269,14 @@ static void print_buffer_to_file(enum loglevel level, const char *buffer,
localtime_r
(
&
skr
,
&
tm_tmp
);
start
=&
tm_tmp
;
fprintf
(
stderr
,
"%
02d%02d%02d %2d:%02d:%02d
[%s] %.*s%.*s
\n
"
,
start
->
tm_year
%
1
00
,
fprintf
(
stderr
,
"%
d-%02d-%02d %2d:%02d:%02d %lu
[%s] %.*s%.*s
\n
"
,
start
->
tm_year
+
19
00
,
start
->
tm_mon
+
1
,
start
->
tm_mday
,
start
->
tm_hour
,
start
->
tm_min
,
start
->
tm_sec
,
(
unsigned
long
)
pthread_self
(),
(
level
==
ERROR_LEVEL
?
"ERROR"
:
level
==
WARNING_LEVEL
?
"Warning"
:
"Note"
),
tag_length
,
tag
,
...
...
storage/innobase/buf/buf0dump.cc
View file @
59815a26
...
...
@@ -123,11 +123,7 @@ buf_dump_status(
sizeof
(
export_vars
.
innodb_buffer_pool_dump_status
),
fmt
,
ap
);
if
(
severity
==
STATUS_NOTICE
||
severity
==
STATUS_ERR
)
{
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: %s
\n
"
,
export_vars
.
innodb_buffer_pool_dump_status
);
}
ib_logf
((
ib_log_level_t
)
severity
,
export_vars
.
innodb_buffer_pool_dump_status
);
va_end
(
ap
);
}
...
...
storage/innobase/srv/srv0start.cc
View file @
59815a26
...
...
@@ -495,7 +495,8 @@ DECLARE_THREAD(io_handler_thread)(
segment
=
*
((
ulint
*
)
arg
);
#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
()));
#endif
...
...
@@ -1619,53 +1620,45 @@ innobase_start_or_create_for_mysql(void)
}
#ifdef UNIV_DEBUG
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!!
\n
"
);
ib_logf
(
IB_LOG_LEVEL_INFO
,
" InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!!"
);
#endif
#ifdef UNIV_IBUF_DEBUG
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: !!!!!!!! UNIV_IBUF_DEBUG switched on !!!!!!!!!
\n
"
);
ib_logf
(
IB_LOG_LEVEL_INFO
,
" InnoDB: !!!!!!!! UNIV_IBUF_DEBUG switched on !!!!!!!!!"
);
# ifdef UNIV_IBUF_COUNT_DEBUG
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
ib_logf
(
IB_LOG_LEVEL_INFO
,
" InnoDB: !!!!!!!! UNIV_IBUF_COUNT_DEBUG switched on "
"!!!!!!!!!
\n
"
);
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: Crash recovery will fail with UNIV_IBUF_COUNT_DEBUG
\n
"
);
"!!!!!!!!!"
);
ib_logf
(
IB_LOG_LEVEL_INFO
,
" InnoDB: Crash recovery will fail with UNIV_IBUF_COUNT_DEBUG"
);
# endif
#endif
#ifdef UNIV_BLOB_DEBUG
fprintf
(
stderr
,
ib_logf
(
IB_LOG_LEVEL_INFO
,
"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 */
#ifdef UNIV_SYNC_DEBUG
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: !!!!!!!! UNIV_SYNC_DEBUG switched on !!!!!!!!!
\n
"
);
ib_logf
(
IB_LOG_LEVEL_INFO
,
" InnoDB: !!!!!!!! UNIV_SYNC_DEBUG switched on !!!!!!!!!"
);
#endif
#ifdef UNIV_SEARCH_DEBUG
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: !!!!!!!! UNIV_SEARCH_DEBUG switched on !!!!!!!!!
\n
"
);
ib_logf
(
IB_LOG_LEVEL_INFO
,
" InnoDB: !!!!!!!! UNIV_SEARCH_DEBUG switched on !!!!!!!!!"
);
#endif
#ifdef UNIV_LOG_LSN_DEBUG
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: !!!!!!!! UNIV_LOG_LSN_DEBUG switched on !!!!!!!!!
\n
"
);
ib_logf
(
IB_LOG_LEVEL_INFO
,
" InnoDB: !!!!!!!! UNIV_LOG_LSN_DEBUG switched on !!!!!!!!!"
);
#endif
/* UNIV_LOG_LSN_DEBUG */
#ifdef UNIV_MEM_DEBUG
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: !!!!!!!! UNIV_MEM_DEBUG switched on !!!!!!!!!
\n
"
);
ib_logf
(
IB_LOG_LEVEL_INFO
,
" InnoDB: !!!!!!!! UNIV_MEM_DEBUG switched on !!!!!!!!!"
);
#endif
if
(
srv_use_sys_malloc
)
{
...
...
storage/xtradb/buf/buf0dump.cc
View file @
59815a26
...
...
@@ -123,11 +123,7 @@ buf_dump_status(
sizeof
(
export_vars
.
innodb_buffer_pool_dump_status
),
fmt
,
ap
);
if
(
severity
==
STATUS_NOTICE
||
severity
==
STATUS_ERR
)
{
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: %s
\n
"
,
export_vars
.
innodb_buffer_pool_dump_status
);
}
ib_logf
((
ib_log_level_t
)
severity
,
export_vars
.
innodb_buffer_pool_dump_status
);
va_end
(
ap
);
}
...
...
storage/xtradb/srv/srv0start.cc
View file @
59815a26
...
...
@@ -522,7 +522,8 @@ DECLARE_THREAD(io_handler_thread)(
os_thread_set_priority
(
srv_io_tids
[
tid_i
],
srv_sched_priority_io
);
#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
()));
#endif
...
...
@@ -1698,53 +1699,45 @@ innobase_start_or_create_for_mysql(void)
}
#ifdef UNIV_DEBUG
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!!
\n
"
);
ib_logf
(
IB_LOG_LEVEL_INFO
,
" InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!!"
);
#endif
#ifdef UNIV_IBUF_DEBUG
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: !!!!!!!! UNIV_IBUF_DEBUG switched on !!!!!!!!!
\n
"
);
ib_logf
(
IB_LOG_LEVEL_INFO
,
" InnoDB: !!!!!!!! UNIV_IBUF_DEBUG switched on !!!!!!!!!"
);
# ifdef UNIV_IBUF_COUNT_DEBUG
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
ib_logf
(
IB_LOG_LEVEL_INFO
,
" InnoDB: !!!!!!!! UNIV_IBUF_COUNT_DEBUG switched on "
"!!!!!!!!!
\n
"
);
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: Crash recovery will fail with UNIV_IBUF_COUNT_DEBUG
\n
"
);
"!!!!!!!!!"
);
ib_logf
(
IB_LOG_LEVEL_INFO
,
" InnoDB: Crash recovery will fail with UNIV_IBUF_COUNT_DEBUG"
);
# endif
#endif
#ifdef UNIV_BLOB_DEBUG
fprintf
(
stderr
,
ib_logf
(
IB_LOG_LEVEL_INFO
,
"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 */
#ifdef UNIV_SYNC_DEBUG
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: !!!!!!!! UNIV_SYNC_DEBUG switched on !!!!!!!!!
\n
"
);
ib_logf
(
IB_LOG_LEVEL_INFO
,
" InnoDB: !!!!!!!! UNIV_SYNC_DEBUG switched on !!!!!!!!!"
);
#endif
#ifdef UNIV_SEARCH_DEBUG
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: !!!!!!!! UNIV_SEARCH_DEBUG switched on !!!!!!!!!
\n
"
);
ib_logf
(
IB_LOG_LEVEL_INFO
,
" InnoDB: !!!!!!!! UNIV_SEARCH_DEBUG switched on !!!!!!!!!"
);
#endif
#ifdef UNIV_LOG_LSN_DEBUG
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: !!!!!!!! UNIV_LOG_LSN_DEBUG switched on !!!!!!!!!
\n
"
);
ib_logf
(
IB_LOG_LEVEL_INFO
,
" InnoDB: !!!!!!!! UNIV_LOG_LSN_DEBUG switched on !!!!!!!!!"
);
#endif
/* UNIV_LOG_LSN_DEBUG */
#ifdef UNIV_MEM_DEBUG
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
" InnoDB: !!!!!!!! UNIV_MEM_DEBUG switched on !!!!!!!!!
\n
"
);
ib_logf
(
IB_LOG_LEVEL_INFO
,
" InnoDB: !!!!!!!! UNIV_MEM_DEBUG switched on !!!!!!!!!"
);
#endif
if
(
srv_use_sys_malloc
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment