Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
thumbnail: Only lock the message row, not the Attachment row.
Alex Vandiver3cbbf2307bf4
diff --git a/zerver/worker/thumbnail.py b/zerver/worker/thumbnail.pyindex 30c76a89a8d..063bf471111 100644--- a/zerver/worker/thumbnail.py+++ b/zerver/worker/thumbnail.py@@ -163,7 +163,7 @@ def update_message_rendered_content(message_class.objects.filter( # type: ignore[attr-defined] # TODO: ?realm_id=realm_id, attachment__path_id=path_id)- .select_for_update()+ .select_for_update(of=("self",)).order_by("id"))for message in messages_with_image: