mirror of
https://github.com/discourse/discourse.git
synced 2025-09-10 12:04:21 +08:00
DEV: Use safe_each_connection
patch when preloading Rails.
This is to ensure we still boot even if there is a problem with any of the databases.
This commit is contained in:
parent
a4a33fccb0
commit
76ce814a62
1 changed files with 1 additions and 1 deletions
|
@ -838,7 +838,7 @@ module Discourse
|
||||||
|
|
||||||
# load up schema cache for all multisite assuming all dbs have
|
# load up schema cache for all multisite assuming all dbs have
|
||||||
# an identical schema
|
# an identical schema
|
||||||
RailsMultisite::ConnectionManagement.each_connection do
|
RailsMultisite::ConnectionManagement.safe_each_connection do
|
||||||
dup_cache = schema_cache.dup
|
dup_cache = schema_cache.dup
|
||||||
# this line is not really needed, but just in case the
|
# this line is not really needed, but just in case the
|
||||||
# underlying implementation changes lets give it a shot
|
# underlying implementation changes lets give it a shot
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue