Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

mysql_user: add functionality to disable binlog when working with users #2639

Closed
wants to merge 3 commits into from

Conversation

grypyrg
Copy link
Contributor

@grypyrg grypyrg commented Dec 7, 2015

mysql_user: add functionality to disable binlog when working with users.

@gregdek
Copy link
Contributor

gregdek commented Dec 8, 2015

Thanks @grypyrg. @marktheunissen please review according to guidelines (http://docs.ansible.com/ansible/developing_modules.html#module-checklist) and comment with text 'shipit' or 'needs_revision' as appropriate.

@marktheunissen
Copy link
Contributor

I am no longer the maintainer, as per #2653

@robynbergeron
Copy link

Thanks @grypyrg for this PR. Unfortunately, it is not mergeable in its current state due to merge conflicts. Please rebase your PR. When you are done, please comment with text 'ready_for_review' and we will put this PR back into review.

@tersmitten
Copy link
Contributor

Nice addition. I think the problem is also present in the mysql_db module.


cursor = db_connection.cursor()

if module.params['sql_log_bin'] == 'no':
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about true/false and 1/0?

@Jmainguy
Copy link
Contributor

Jmainguy commented Jan 5, 2016

@grypyrg @tersmitten So right now by default it always logs to bin, and this allows one to change to false, in order not to log stuff?

The benefit being gives the user the choice to free up some disk space?

@tersmitten
Copy link
Contributor

No it's not really because of space. It's because sometimes you don't want to log queries to the binlog because they may break replication (if you run them multiple times, e.g. master-master) or you don't mind to create a difference (in users for instance) between machines

@Jmainguy
Copy link
Contributor

Jmainguy commented Jan 5, 2016

@tersmitten Gotcha that makes sense

@grypyrg Would you mind rebasing?

@Jmainguy
Copy link
Contributor

@grypyrg Think you could rebase this?

@grypyrg
Copy link
Contributor Author

grypyrg commented Feb 21, 2016

@Jmainguy : I'd like to but I don't have sufficient time at the moment to make a fix. I can try to do this in April, where I might have some spare time.

@Jmainguy
Copy link
Contributor

@grypyrg No worries, I know how busy life can get. I will take a stab at rebasing this later this week (which should let the PR to get merged, and you will retain credit). I will update here once I have attempted it.

@Jmainguy
Copy link
Contributor

Rebased over at #3112 I recommend closing this out, and continuing discussion over there.

@sivel
Copy link
Member

sivel commented Feb 24, 2016

Closing per above.

@sivel sivel closed this Feb 24, 2016
@grypyrg grypyrg deleted the mysql_user_disablebinlog branch July 8, 2016 18:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants