diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-11-07 20:25:29 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-11-07 20:25:29 +0300 |
commit | d1a5746e1e8b9e628a3625413a892c7220cfd72a (patch) | |
tree | b79c37d8eb2edc848e396ddc598e4c5a2396370c /config/initializers/fill_shards.rb | |
parent | 89f1e4b63c3349056c98b278b10e909d3c922a0f (diff) |
Fix syntax error in initializers/fill_shards
Diffstat (limited to 'config/initializers/fill_shards.rb')
-rw-r--r-- | config/initializers/fill_shards.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/config/initializers/fill_shards.rb b/config/initializers/fill_shards.rb index 0f45cf44621..18e067c8854 100644 --- a/config/initializers/fill_shards.rb +++ b/config/initializers/fill_shards.rb @@ -1,4 +1,3 @@ -return unless Shard.connected? -return if Gitlab::Database.read_only? - -Shard.populate! +if Shard.connected? && !Gitlab::Database.read_only? + Shard.populate! +end |