]> cat aescling's git repositories - mastodon.git/commit
Deal with collation-related index corruption (#14860)
authorThibG <thib@sitedethib.com>
Thu, 19 Nov 2020 16:37:49 +0000 (17:37 +0100)
committerGitHub <noreply@github.com>
Thu, 19 Nov 2020 16:37:49 +0000 (17:37 +0100)
commit1242e57c270e9ff356e8c175670d5dc3a10ad273
treefb149a2e4e95f510fa1343983b76609934995173
parent29e76f994e3abf0146da1be3ddda9e0893f7efa5
Deal with collation-related index corruption (#14860)

* Add tootctl maintenance fix-duplicates

This tool goes through the database to detect and fix duplicates.
This operation is very slow and may cause data loss (of data that would be
inaccessible without intervention because of the existing index corruptions).
It tries its best to make sensible decisions, and asks the user in some cases.

* Add warning message in db:migrate hook

* Clear Rails cache after being done with database deduplication

Avoids followers hash cache being incorrect, among other things
lib/cli.rb
lib/mastodon/maintenance_cli.rb [new file with mode: 0644]
lib/tasks/db.rake