Skip to content

Added [if not exists] to [create database] clause.#397

Merged
apenney merged 2 commits intopuppetlabs:masterfrom
srinathman:feature-create-db-if-exists
Dec 20, 2013
Merged

Added [if not exists] to [create database] clause.#397
apenney merged 2 commits intopuppetlabs:masterfrom
srinathman:feature-create-db-if-exists

Conversation

@srinathman
Copy link

this should avoid errors like:
ERROR 1007 (HY000): Can't create database 'MyDB'; database exists

This error can cause a multi-master replication to stop due to conflicting
commands between nodes. For example, if the command create DB is run in
different nodes and then they will send it in the replication logs to each
other and then they will try to run them second time and fail.

this should avoid errors like:
ERROR 1007 (HY000): Can't create database 'MyDB'; database exists

This error can cause a multi-master replication to stop due to conflicting
commands between nodes. For  example, if the command create DB is run in
 different nodes and then they will send it in the replication logs to each
other and then they will try to run them second time and fail.
@igalic
Copy link
Contributor

igalic commented Dec 16, 2013

can you please take a look at the failing test?

apenney pushed a commit that referenced this pull request Dec 20, 2013
Added [if not exists] to [create database] clause.
@apenney apenney merged commit c081327 into puppetlabs:master Dec 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants