diff options
author | Nick Thomas <nick@gitlab.com> | 2018-10-19 13:17:50 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-11-05 01:30:04 +0000 |
commit | f760c1cd17881c8aef3a33a3b43db54673db8111 (patch) | |
tree | e1ed99cee3bd9bce1b60f2487d967e8187b110c2 /config | |
parent | 93846eb152f32e149ef8c24b707fa0a0c0c52714 (diff) | |
download | gitlab-ce-f760c1cd17881c8aef3a33a3b43db54673db8111.tar.gz |
Start tracking shards in the database
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/fill_shards.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/fill_shards.rb b/config/initializers/fill_shards.rb new file mode 100644 index 00000000000..d5071c7d556 --- /dev/null +++ b/config/initializers/fill_shards.rb @@ -0,0 +1,3 @@ +return if Gitlab::Database.read_only? + +Shard.populate! |