Merge lp:~sergei.glushchenko/percona-server/mysqlbinlog-stdin into lp:percona-server/5.5
Proposed by
Sergei Glushchenko
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Alexey Kopytov | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 224 | ||||
Proposed branch: | lp:~sergei.glushchenko/percona-server/mysqlbinlog-stdin | ||||
Merge into: | lp:percona-server/5.5 | ||||
Diff against target: |
105 lines (+93/-0) 2 files modified
patches/bug933969.patch (+92/-0) patches/series (+1/-0) |
||||
To merge this branch: | bzr merge lp:~sergei.glushchenko/percona-server/mysqlbinlog-stdin | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexey Kopytov (community) | Approve | ||
Stewart Smith (community) | Needs Fixing | ||
Review via email: mp+93761@code.launchpad.net |
Description of the change
Bug #933969: mysqlbinlog doesn't accept stdin
mysqlbinlog can't handle stdin when "|" used.
mysqlbinlog fails after making an attempt to execute seek on pipe handle.
Buffered read used in mysqlbinlog and it's possible to seek inside buffer
window. But in check_header routine seek(0) made before any read
operation, when buffer is empty. Due to it actual seek is performed.
Solution is to avoid seek(0) operation in check_header before any read is
performed, e.g. when we are at the beginning of the file.
To post a comment you must log in.
Jenkins build: jenkins. percona. com/view/ Percona% 20Server% 205.5/job/ percona- server- 5.5-param/ 280/
http://