Skip to content

Commit 4444c88

Browse files
authored
Merge pull request #1037 from seth-reeser/develop-catapult
RedHat: Disable table locking for MyISAM tables during mysqldump.
2 parents aef4f58 + c9f3769 commit 4444c88

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

VERSION.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
version: 4.7.0
2+
version: 4.7.1
33
major:
44
description: "Catapult uses Semantic Versioning. During a MAJOR increment, incompatable API changes are made which require a manual upgrade path. Please follow these directions:"
55
notice: "NEW MAJOR VERSION OF CATAPULT AVAILABLE"

provisioners/redhat/modules/mysql_database_backup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if ([ ! -z "${software}" ]); then
2323
# create the _sql directory if it does not exist
2424
mkdir --parents "/var/www/repositories/apache/${domain}/_sql"
2525
# dump the database
26-
mysqldump --defaults-extra-file=$dbconf --single-transaction --quick ${1}_${domain_valid_db_name} > /var/www/repositories/apache/${domain}/_sql/$(date +"%Y%m%d").sql
26+
mysqldump --defaults-extra-file=$dbconf --lock-tables=false --single-transaction --quick ${1}_${domain_valid_db_name} > /var/www/repositories/apache/${domain}/_sql/$(date +"%Y%m%d").sql
2727
# write out a sql lock file for use in controlling what is restored in other environments
2828
touch "/var/www/repositories/apache/${domain}/_sql/$(date +"%Y%m%d").sql.lock"
2929
# ensure no more than 250mb or at least the one, newest, YYYYMMDD.sql file exists

provisioners/redhat/modules/mysql_database_table_retain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if ([ ! -z "${software}" ]); then
2727
mkdir --parents "/var/www/repositories/apache/${domain}/_sql"
2828
# dump the database tables that are specified
2929
# note if there is an invalid table, there will be an error of: mysqldump: Couldn't find table: "test"
30-
mysqldump --defaults-extra-file=$dbconf --single-transaction --quick ${1}_${domain_valid_db_name} ${software_dbtable_retain[*]} > /var/www/repositories/apache/${domain}/_sql/$(date +"%Y%m%d")_software_dbtable_retain.sql
30+
mysqldump --defaults-extra-file=$dbconf --lock-tables=false --single-transaction --quick ${1}_${domain_valid_db_name} ${software_dbtable_retain[*]} > /var/www/repositories/apache/${domain}/_sql/$(date +"%Y%m%d")_software_dbtable_retain.sql
3131
# write out a sql lock file for use in controlling what is restored in other environments
3232
touch "/var/www/repositories/apache/${domain}/_sql/$(date +"%Y%m%d")_software_dbtable_retain.sql.lock"
3333
# ensure no more than 50mb or at least the one, newest, YYYYMMDD_software_dbtable_retain.sql file exists

0 commit comments

Comments
 (0)