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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
0d4667eb
Commit
0d4667eb
authored
Feb 08, 2008
by
kostja@dipika.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-runtime
into dipika.(none):/opt/local/work/mysql-5.1-runtime
parents
24830674
956e9559
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
sql/log.cc
sql/log.cc
+9
-3
No files found.
sql/log.cc
View file @
0d4667eb
...
...
@@ -73,23 +73,28 @@ static int binlog_prepare(handlerton *hton, THD *thd, bool all);
*/
class
Silence_log_table_errors
:
public
Internal_error_handler
{
char
m_message
[
MYSQL_ERRMSG_SIZE
];
public:
Silence_log_table_errors
()
{}
{
m_message
[
0
]
=
'\0'
;
}
virtual
~
Silence_log_table_errors
()
{}
virtual
bool
handle_error
(
uint
sql_errno
,
const
char
*
message
,
MYSQL_ERROR
::
enum_warning_level
level
,
THD
*
thd
);
const
char
*
message
()
const
{
return
m_message
;
}
};
bool
Silence_log_table_errors
::
handle_error
(
uint
/* sql_errno */
,
const
char
*
/* message */
,
const
char
*
message_arg
,
MYSQL_ERROR
::
enum_warning_level
/* level */
,
THD
*
/* thd */
)
{
strmake
(
m_message
,
message_arg
,
sizeof
(
m_message
));
return
TRUE
;
}
...
...
@@ -437,7 +442,8 @@ bool Log_to_csv_event_handler::
err:
if
(
result
)
sql_print_error
(
"Failed to write to mysql.general_log"
);
sql_print_error
(
"Failed to write to mysql.general_log: %s"
,
error_handler
.
message
());
if
(
need_rnd_end
)
{
...
...
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