summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-10-19 04:44:41 +0100
committerNick Thomas <nick@gitlab.com>2018-11-05 01:40:29 +0000
commit270155d655bec91c3ae636e158b25fdb5bd03b45 (patch)
tree2b7059d69cd3d4f1b443817daae0659562ba0fc0 /config
parentf760c1cd17881c8aef3a33a3b43db54673db8111 (diff)
downloadgitlab-ce-270155d655bec91c3ae636e158b25fdb5bd03b45.tar.gz
Start tracking pool repositories
Diffstat (limited to 'config')
-rw-r--r--config/initializers/fill_shards.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/fill_shards.rb b/config/initializers/fill_shards.rb
index d5071c7d556..0f45cf44621 100644
--- a/config/initializers/fill_shards.rb
+++ b/config/initializers/fill_shards.rb
@@ -1,3 +1,4 @@
+return unless Shard.connected?
return if Gitlab::Database.read_only?
Shard.populate!