Adding a post id to a pool's post_ids string is non-atomic, hence we must lock the pool to avoid a race condition. Adding a pool to a post's pool_string is likewise non-atomic, hence we must lock the post as well.
10 KiB
10 KiB