Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug 1587840 / 81675 (mysqlbinlog does not free the existing conne… #566

Merged
merged 1 commit into from Jun 3, 2016

Conversation

laurynas-biveinis
Copy link
Contributor

…ction before opening new remote one)

If mysqlbinlog is invoked with --read-from-remote-server and several
binlog file names, each file will be read with the server connection
re-opened. But the existing connection is only closed on mysqlbinlog
termination, not before a new connection is opened for the next
file. This causes a memory leak.

Fix by closing the old connection, if any, at the start of
safe_connect().

http://jenkins.percona.com/job/percona-server-5.5-param/1230/

…ction before opening new remote one)

If mysqlbinlog is invoked with --read-from-remote-server and several
binlog file names, each file will be read with the server connection
re-opened. But the existing connection is only closed on mysqlbinlog
termination, not before a new connection is opened for the next
file. This causes a memory leak.

Fix by closing the old connection, if any, at the start of
safe_connect().
@percona-ysorokin
Copy link
Collaborator

LGTM

@laurynas-biveinis laurynas-biveinis merged commit 915d60a into percona:5.5 Jun 3, 2016
@laurynas-biveinis laurynas-biveinis deleted the bug1587840-5.5 branch June 3, 2016 06:27
inikep pushed a commit to inikep/percona-server that referenced this pull request Apr 23, 2020
percona#566)

Summary:
… source directive

also, don't fail if the table t already existed.
Closes facebook/mysql-5.6#566

Differential Revision: D4705949

Pulled By: jkedgar

fbshipit-source-id: a874b08d97d
inikep pushed a commit to inikep/percona-server that referenced this pull request Feb 24, 2021
percona#566)

Summary:
… source directive

also, don't fail if the table t already existed.
Closes facebook/mysql-5.6#566

Differential Revision: D4705949

Pulled By: jkedgar

fbshipit-source-id: a874b08d97d
inikep pushed a commit to inikep/percona-server that referenced this pull request Nov 15, 2021
…?nd=20so=20must=20declare=20that=20with=20a=E2=80=A6=20(percona#566)?= (percona#566)

Summary:
… source directive

also, don't fail if the table t already existed.
Closes facebook/mysql-5.6#566

Differential Revision: D4705949 (facebook/mysql-5.6@fbbf596)

Pulled By: jkedgar

fbshipit-source-id: 6eefee35cee
ldonoso pushed a commit to ldonoso/percona-server that referenced this pull request Mar 15, 2022
…?nd=20so=20must=20declare=20that=20with=20a=E2=80=A6=20(percona#566)?= (percona#566)

Summary:
… source directive

also, don't fail if the table t already existed.
Closes facebook/mysql-5.6#566

Differential Revision: D4705949

Pulled By: jkedgar
inikep pushed a commit to inikep/percona-server that referenced this pull request Apr 9, 2024
…?nd=20so=20must=20declare=20that=20with=20a=E2=80=A6=20(percona#566)?= (percona#566)

Summary:
… source directive

also, don't fail if the table t already existed.
Closes facebook/mysql-5.6#566

Differential Revision: D4705949

Pulled By: jkedgar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants