]> cat aescling's git repositories - mastodon.git/commitdiff
Change index corruption warning to be a little less scary (#17395)
authorClaire <claire.github-309c@sitedethib.com>
Sun, 30 Jan 2022 22:49:52 +0000 (23:49 +0100)
committerGitHub <noreply@github.com>
Sun, 30 Jan 2022 22:49:52 +0000 (23:49 +0100)
lib/tasks/db.rake

index b2a0d61de07f9baed318aaa79de6f645c93e522d..a6b8c74cd2ec256a40b79863918923247e741aac 100644 (file)
@@ -21,8 +21,8 @@ namespace :db do
     at_exit do
       unless %w(C POSIX).include?(ActiveRecord::Base.connection.select_one('SELECT datcollate FROM pg_database WHERE datname = current_database();')['datcollate'])
         warn <<~WARNING
-          Your database collation is susceptible to index corruption.
-            (This warning does not indicate that index corruption has occurred and can be ignored)
+          Your database collation may be susceptible to index corruption.
+            (This warning does not indicate that index corruption has occurred, and it can be ignored if you've previously checked for index corruption)
             (To learn more, visit: https://docs.joinmastodon.org/admin/troubleshooting/index-corruption/)
         WARNING
       end