gitlab-org--gitlab-foss/config/initializers/fill_shards.rb

5 lines
86 B
Ruby
Raw Normal View History

2018-10-18 23:44:41 -04:00
return unless Shard.connected?
2018-10-19 08:17:50 -04:00
return if Gitlab::Database.read_only?
Shard.populate!