Skip to content

Commit

Permalink
Merge pull request #17267 from agrare/bz_1562401_empty_pool_after_fork
Browse files Browse the repository at this point in the history
Set DRb conn pool to [] after closing connections
  • Loading branch information
jrafanie authored Apr 9, 2018
2 parents 05ab3d0 + 76309b9 commit 142129e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/miq_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ def self.close_drb_pool_connections
# Once that is added this should be replaced.
DRb::DRbConn.instance_variable_get(:@mutex).synchronize do
DRb::DRbConn.instance_variable_get(:@pool).each(&:close)
DRb::DRbConn.instance_variable_set(:@pool, [])
end
end

Expand Down

0 comments on commit 142129e

Please sign in to comment.