MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
unknown b626d5d78e BUG#17654 : --read-from-remote-server causes core
This patch corrects a problem encountered when reading the binlog from a remote
host. The application was crashing because the buffer variable (temp_buf) in 
log_event was not pointing to the incoming data. For a normal file read, this 
buffer is allocated by a previous call of read_log_event. However, when reading
from a remote host, the first call to read_log_event is not executed therefore
no buffer is allocated. Furthermore, there is no need to allocate a new buffer 
because the incoming stream is what needs to be read. 

This patch adds the call to initialize the temp_buf variable if reading from a 
remote host. It also adds a check at destroy time to ensure the temp_buf is not
freed if reading from a remote host.


client/mysqlbinlog.cc:
  BUG#17654 : --read-from-remote-server causes core
  
  This patch corrects a problem when reading from a remote host. The temp_buf 
  variable of the log_event class is undefined. This patch assigns the temp_buf
  variable to the address of the incoming stream. This allows the print functions
  to print the binlog events correctly.
mysql-test/r/rpl_row_mysqlbinlog.result:
  BUG#17654 : --read-from-remote-server causes core
  
  This patch adds the results for the test that were disabled when the bug report
  was investigated. The patch also adds an additional test was added to ensure 
  the output of reading from a remote host is the same as reading from a local file.
mysql-test/t/rpl_row_mysqlbinlog.test:
  BUG#17654 : --read-from-remote-server causes core
  
  This patch enables the portions of the test that were disabled when the bug report
  was investigated. The patch also adds an additional test was added to ensure 
  the output of reading from a remote host is the same as reading from a local file.
2007-05-22 10:50:32 -04:00
BitKeeper Merge bk-internal.mysql.com:/home/bk/mysql-5.1 2007-02-21 11:36:23 +01:00
BUILD Adding build file for Solaris on AMD64 2007-04-12 13:20:38 +02:00
client BUG#17654 : --read-from-remote-server causes core 2007-05-22 10:50:32 -04:00
cmd-line-utils Fixed compiler warnings 2007-02-23 13:13:55 +02:00
config/ac-macros Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-build-work-25601 2007-04-11 13:33:15 +02:00
dbug dbug/dbug.c: unused variable removed 2007-03-17 11:19:21 +01:00
Docs Merge mysql.com:/home/kent/bk/tmp/mysql-5.0-build 2007-03-22 19:44:14 +01:00
extra Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.1 2007-04-02 11:15:09 +02:00
include Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.0 2007-04-13 09:04:34 +03:00
libmysql Added more descriptive error message of why statement was automaticly dropped 2007-04-13 01:56:22 +03:00
libmysql_r my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
libmysqld WL#2735: Refactor replication 2007-04-13 14:55:28 +02:00
man my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
mysql-test BUG#17654 : --read-from-remote-server causes core 2007-05-22 10:50:32 -04:00
mysys Clear field_alloc when it's moved to result set (allows us to always call free_root on field_alloc) 2007-04-16 17:08:29 +03:00
netware Merge mysql.com:/home/kent/bk/tmp/mysql-5.0-build 2007-03-20 17:58:30 +01:00
plugin Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.1 2007-02-03 00:58:09 +02:00
pstack my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
regex Many files: 2006-12-31 02:29:11 +01:00
scripts don't copy pdb files from the release target output folder, since this target does not build them 2007-04-11 14:27:03 +02:00
server-tools Clear field_alloc when it's moved to result set (allows us to always call free_root on field_alloc) 2007-04-16 17:08:29 +03:00
sql Merge mysql_cab.:C:/source/c++/mysql-5.1-new-rpl 2007-05-08 10:36:33 -04:00
sql-bench Fixed compiler warnings 2007-02-23 13:13:55 +02:00
sql-common Clear field_alloc when it's moved to result set (allows us to always call free_root on field_alloc) 2007-04-16 17:08:29 +03:00
storage Merge romeo.(none):/home/bkroot/mysql-5.1-rpl 2007-04-20 10:46:58 +02:00
strings Merge mysql.com:/home/bar/mysql-5.0.b27079 2007-03-29 10:36:28 +05:00
support-files add a manual page back 2007-04-10 11:31:45 +02:00
tests Added more descriptive error message of why statement was automaticly dropped 2007-04-13 01:56:22 +03:00
unittest remove unnecessary line 2007-03-16 19:44:00 +01:00
vio Merge pilot.blaudden:/home/msvensson/mysql/bug25309/my51-bug25309 2007-03-29 11:48:05 +02:00
win configure.in: 2007-03-28 23:00:50 +02:00
zlib Merge mysql.com:/home/kent/bk/tmp3/mysql-5.0-build 2007-04-11 01:48:43 +02:00
.bzrignore Merge romeo.(none):/home/bkroot/mysql-5.1-rpl 2007-04-20 10:46:58 +02:00
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
CMakeLists.txt Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-release 2007-04-10 13:15:07 +02:00
configure.in Merge romeo.(none):/home/bkroot/mysql-5.1-rpl 2007-04-20 10:46:58 +02:00
COPYING - manual.texi will be replaced with a manual written in DocBook/XML. This ChangeSet removes all 2005-04-13 11:51:38 +02:00
EXCEPTIONS-CLIENT EXCEPTIONS-CLIENT: 2007-03-14 18:28:16 +01:00
Makefile.am Makefile.am: 2007-03-28 23:18:43 +02:00
README make_binary_distribution.sh: 2006-11-07 22:26:37 +01:00

This is a release of MySQL, a dual-license SQL database server.
MySQL is brought to you by the MySQL team at MySQL AB.

License information can be found in these files:
- For GPL (free) distributions, see the COPYING file and
  the EXCEPTIONS-CLIENT file.
- For commercial distributions, see the LICENSE.mysql file.


For further information about MySQL or additional documentation, see:
- The latest information about MySQL: http://www.mysql.com
- The current MySQL documentation: http://dev.mysql.com/doc

Some manual sections of special interest:

- If you are migrating from an older version of MySQL, please read the
  "Upgrading from..." section first!
- To see what MySQL can do, take a look at the features section.
- For installation instructions, see the Installing and Upgrading chapter.
- For the new features/bugfix history, see the Change History appendix.
- For the currently known bugs/misfeatures (known errors) see the Problems
  and Common Errors appendix.
- For a list of developers and other contributors, see the Credits
  appendix.

A local copy of the MySQL Reference Manual can be found in the Docs
directory in GNU Info format.  You can also browse the manual online or
download it in any of several formats at the URL given earlier in this
file.

************************************************************

IMPORTANT:

Bug or error reports should be sent to http://bugs.mysql.com.