# Possible Race Condition when editing a post

**URL:** https://meta.discourse.org/t/possible-race-condition-when-editing-a-post/177514
**Category:** Bug
**Created:** [January 28, 2021, 3:58am UTC](https://meta.discourse.org/t/possible-race-condition-when-editing-a-post/177514 "2021-01-28T03:58:29Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 29, 2021, 12:41am UTC](https://meta.discourse.org/t/possible-race-condition-when-editing-a-post/177514/2 "2021-01-29T00:41:55Z")

</div>

This is possible I guess and I am not strongly against adding a distributed lock here. The tricky thing is that I don’t want to risk any deadlocks so we would have to be extremely careful.

If concurrent editing is really your thing why not try shared edits?

> [@Discourse Shared Edits](https://meta.discourse.org/t/discourse-shared-edits/167583):
>
> discourse2Summary Discourse Shared Edits allows multiple users to collaboratively edit posts in real time. This feature is default disabled and must be enabled explicitly by moderators on posts.hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-shared-edits](https://github.com/discourse/discourse-shared-edits)open_bookInstall Guide [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157)Features Moderators (including TL4) can toggle shared edits on a topic (red) via the gear icon on the composer bar. Note that the plu…

---

_[View the full topic](https://meta.discourse.org/t/possible-race-condition-when-editing-a-post/177514)._
