diff options
Diffstat (limited to 'lib/gitlab/seeder.rb')
-rw-r--r-- | lib/gitlab/seeder.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/seeder.rb b/lib/gitlab/seeder.rb index ec514adafc8..d5d9b794cd9 100644 --- a/lib/gitlab/seeder.rb +++ b/lib/gitlab/seeder.rb @@ -126,12 +126,12 @@ module Gitlab end def self.without_statement_timeout - Gitlab::Database::EachDatabase.each_database_connection do |connection| + Gitlab::Database::EachDatabase.each_connection do |connection| connection.execute('SET statement_timeout=0') end yield ensure - Gitlab::Database::EachDatabase.each_database_connection do |connection| + Gitlab::Database::EachDatabase.each_connection do |connection| connection.execute('RESET statement_timeout') end end |