Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Minor
-
Resolution: Unresolved
-
10.1.17
-
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
|
};
|
...
|
Attachments
Activity
Transition | Time In Source Status | Execution Times |
---|
|
979d 5h 57m | 1 |
|
5d 22h | 1 |
|
4h 28m | 1 |
|
5d 21h 2m | 1 |
|
1432d 8h 25m | 1 |
|
444d 15h 13m | 1 |
|
4s | 1 |