Sujatha Sivakumar
d054027c4b
Bug#14324766:PARTIALLY WRITTEN INSERT STATEMENT IN BINLOG
...
NO ERRORS REPORTED
Problem:
=======
Errors from my_b_fill are ignored. MYSQL_BIN_LOG::write_cache
code assumes that 0 returned from my_b_fill always means
end-of-cache, but that is incorrect. It can result in error
and the error is ignored. Other callers of my_b_fill don't
check for error: my_b_copy_to_file, maybe my_b_gets.
Fix:
===
An error handler is already present to check the "cache"
error that is reported during "MYSQL_BIN_LOG::write_cache"
call. Hence error handlers are added for "my_b_copy_to_file"
and "my_b_gets".
During my_b_fill() function call, when the cache read fails
info->error= -1 is set. Hence a check for "info->error"
is added for the above to callers upon their return.
mysys/mf_iocache2.c:
Added a check for "cache->error" and simulation of cache read failure
mysys/my_read.c:
Simulation of read failure
sql/log_event.cc:
Added debug simulation
sql/sql_repl.cc:
Added a check for cache error
2013-03-28 14:14:39 +05:30
..
2013-02-25 15:26:00 +01:00
2011-06-30 17:37:13 +02:00
2004-06-03 11:52:54 -05:00
2013-03-19 13:29:12 +01:00
2011-06-30 17:37:13 +02:00
2013-03-19 13:29:12 +01:00
2011-07-03 17:47:37 +02:00
2013-03-19 13:29:12 +01:00
2011-06-30 17:37:13 +02:00
2013-02-25 15:26:00 +01:00
2011-06-30 17:37:13 +02:00
2013-03-19 13:29:12 +01:00
2006-09-14 23:29:44 -06:00
2013-03-19 13:29:12 +01:00
2011-07-03 17:47:37 +02:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-02-25 15:26:00 +01:00
2013-02-25 15:26:00 +01:00
2013-03-28 14:14:39 +05:30
2011-06-30 17:37:13 +02:00
2011-06-30 17:37:13 +02:00
2013-03-19 13:29:12 +01:00
2011-06-30 17:37:13 +02:00
2013-01-07 16:16:08 +05:30
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2011-06-30 17:37:13 +02:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2011-06-30 17:37:13 +02:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2011-06-30 17:37:13 +02:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2011-07-03 17:47:37 +02:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2011-06-30 17:37:13 +02:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-02-25 15:26:00 +01:00
2011-06-30 17:37:13 +02:00
2013-03-19 13:29:12 +01:00
2011-06-30 17:37:13 +02:00
2011-06-30 17:37:13 +02:00
2011-06-30 17:37:13 +02:00
2011-06-30 17:37:13 +02:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2011-06-30 17:37:13 +02:00
2013-02-25 15:26:00 +01:00
2013-02-25 15:26:00 +01:00
2013-02-25 15:26:00 +01:00
2013-01-07 16:16:08 +05:30
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2011-06-30 17:37:13 +02:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-02-25 15:26:00 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2011-06-30 17:37:13 +02:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-28 14:14:39 +05:30
2013-03-19 13:29:12 +01:00
2011-06-30 17:37:13 +02:00
2013-03-19 13:29:12 +01:00
2011-06-30 17:37:13 +02:00
2013-03-19 13:29:12 +01:00
2011-06-30 17:37:13 +02:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2012-02-15 17:21:38 +01:00
2011-06-30 17:37:13 +02:00
2011-06-30 17:37:13 +02:00
2013-03-19 13:29:12 +01:00
2011-06-30 17:37:13 +02:00
2013-03-19 13:29:12 +01:00
2013-02-25 15:26:00 +01:00
2013-02-25 15:26:00 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2011-06-30 17:37:13 +02:00
2010-10-05 17:03:04 +03:00
2013-02-25 15:26:00 +01:00
2011-06-30 17:37:13 +02:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-02-25 15:26:00 +01:00
2011-06-30 17:37:13 +02:00
2011-06-30 17:37:13 +02:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2013-03-19 13:29:12 +01:00
2011-06-30 17:37:13 +02:00