diff options
author | Jeroen Nijhof <jeroen@jeroennijhof.nl> | 2016-02-08 17:31:24 +0100 |
---|---|---|
committer | Jeroen Nijhof <jeroen@jeroennijhof.nl> | 2016-02-08 17:31:24 +0100 |
commit | 897f18032a471e647e0d796c241f911ac1ad0cd8 (patch) | |
tree | 9066acf9088108d7c8c84d06fed301bfd93f28cf /lib | |
parent | 9fdd605fd2e4550170e5ef088bec7c6d2585c4a5 (diff) | |
download | gitlab-ce-897f18032a471e647e0d796c241f911ac1ad0cd8.tar.gz |
Make sure there is a connection before using ActiveRecordbackup-database-timeout-fix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/backup/manager.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/backup/manager.rb b/lib/backup/manager.rb index 099062eeb8b..4962f5e53ce 100644 --- a/lib/backup/manager.rb +++ b/lib/backup/manager.rb @@ -1,6 +1,9 @@ module Backup class Manager def pack + # Make sure there is a connection + ActiveRecord::Base.connection.reconnect! + # saving additional informations s = {} s[:db_version] = "#{ActiveRecord::Migrator.current_version}" |