diff options
Diffstat (limited to 'lib/backup/database.rb')
-rw-r--r-- | lib/backup/database.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/backup/database.rb b/lib/backup/database.rb index 28bc78a3932..12656cb3702 100644 --- a/lib/backup/database.rb +++ b/lib/backup/database.rb @@ -63,7 +63,7 @@ module Backup progress.flush end ensure - ::Gitlab::Database::EachDatabase.each_database_connection( + ::Gitlab::Database::EachDatabase.each_connection( only: base_models_for_backup.keys, include_shared: false ) do |connection, _| Gitlab::Database::TransactionTimeoutSettings.new(connection).restore_timeouts @@ -259,7 +259,7 @@ module Backup @database_to_snapshot_id = {} if @database_to_snapshot_id.empty? - ::Gitlab::Database::EachDatabase.each_database_connection( + ::Gitlab::Database::EachDatabase.each_connection( only: base_models_for_backup.keys, include_shared: false ) do |connection, database_name| @database_to_snapshot_id[database_name] = nil |