Skip to content

Commit

Permalink
Merge pull request #1037 from seth-reeser/develop-catapult
Browse files Browse the repository at this point in the history
RedHat: Disable table locking for MyISAM tables during mysqldump.
  • Loading branch information
seth-reeser authored Aug 27, 2023
2 parents aef4f58 + c9f3769 commit 4444c88
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 4.7.0
version: 4.7.1
major:
description: "Catapult uses Semantic Versioning. During a MAJOR increment, incompatable API changes are made which require a manual upgrade path. Please follow these directions:"
notice: "NEW MAJOR VERSION OF CATAPULT AVAILABLE"
Expand Down
2 changes: 1 addition & 1 deletion provisioners/redhat/modules/mysql_database_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if ([ ! -z "${software}" ]); then
# create the _sql directory if it does not exist
mkdir --parents "/var/www/repositories/apache/${domain}/_sql"
# dump the database
mysqldump --defaults-extra-file=$dbconf --single-transaction --quick ${1}_${domain_valid_db_name} > /var/www/repositories/apache/${domain}/_sql/$(date +"%Y%m%d").sql
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
# write out a sql lock file for use in controlling what is restored in other environments
touch "/var/www/repositories/apache/${domain}/_sql/$(date +"%Y%m%d").sql.lock"
# ensure no more than 250mb or at least the one, newest, YYYYMMDD.sql file exists
Expand Down
2 changes: 1 addition & 1 deletion provisioners/redhat/modules/mysql_database_table_retain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if ([ ! -z "${software}" ]); then
mkdir --parents "/var/www/repositories/apache/${domain}/_sql"
# dump the database tables that are specified
# note if there is an invalid table, there will be an error of: mysqldump: Couldn't find table: "test"
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
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
# write out a sql lock file for use in controlling what is restored in other environments
touch "/var/www/repositories/apache/${domain}/_sql/$(date +"%Y%m%d")_software_dbtable_retain.sql.lock"
# ensure no more than 50mb or at least the one, newest, YYYYMMDD_software_dbtable_retain.sql file exists
Expand Down

0 comments on commit 4444c88

Please sign in to comment.