Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Minor
-
Resolution: Unresolved
-
10.1.17
-
None
-
suse 11
Description
Executing command, "mysqlbinlog --read-from-remote-server --host='xx.xx.xx.xx' --port=3306 --user=xxx --password=xxx --database=mysql --to-last-log mysql-bin.000001 --start-position=1098699 --stop-never |mysql -uxxx -pxxx", we found that last data read from remote couldn't commit. Write_on_release_cache(log_event.cc) function may have some problems.
In Write_on_release_cache(log_event.cc) function have following code:
public:
|
enum flag
|
{
|
FLUSH_F
|
};
|
...
|
Write_on_release_cache(IO_CACHE *cache, FILE *file, flag_set flags = 0)
|
: m_cache(cache), m_file(file), m_flags(flags)
|
{
|
reinit_io_cache(m_cache, WRITE_CACHE, 0L, FALSE, TRUE);
|
}
|
 |
~Write_on_release_cache()
|
{
|
copy_event_cache_to_file_and_reinit(m_cache, m_file);
|
if (m_flags & FLUSH_F)
|
fflush(m_file);
|
}
|
...
|
The right code maybe:
public:
|
enum flag
|
{
|
FLUSH_F = 1
|
};
|
...
|