mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 05:52:38 +08:00

The previous concurrency-safe implementation relied on catching an index conflict and following through appropriately. Unfortunately those conflicts were logged to Postgres and there is no easy way to turn them off. This solution approaches the problem differently. It should still be safe under concurrency and not log errors.