diff options
author | Rohit Kalhans <rohit.kalhans@oracle.com> | 2012-05-29 12:11:30 +0530 |
---|---|---|
committer | Rohit Kalhans <rohit.kalhans@oracle.com> | 2012-05-29 12:11:30 +0530 |
commit | d8b2d4a0694156848db0862a230d248653f8ebe5 (patch) | |
tree | b8cc09e4196ef3f0d060ffca61b5cb6e6f4d5907 /support-files/mysql.spec.sh | |
parent | 01748ce128ae4c29cfb63e88cd68918e7d48e946 (diff) | |
download | mariadb-git-d8b2d4a0694156848db0862a230d248653f8ebe5.tar.gz |
Bug#11762667: MYSQLBINLOG IGNORES ERRORS WHILE WRITING OUTPUT
Problem: mysqlbinlog exits without any error code in case of
file write error. It is because of the fact that the calls
to Log_event::print() method does not return a value and the
thus any error were being ignored.
Resolution: We resolve this problem by checking for the
IO_CACHE::error == -1 after every call to Log_event:: print()
and terminating the further execution.
client/mysqlbinlog.cc:
- handled error conditions during event->print() calls
- added check for error in end_io_cache()
mysys/my_write.c:
Added debug code to simulate file write error.
error returned will be ENOSPC=> error no space on the disk
sql/log_event.cc:
Added debug code to simulate file write error, by reducing the size of io cache.
Diffstat (limited to 'support-files/mysql.spec.sh')
0 files changed, 0 insertions, 0 deletions