Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

process_fts_updates: Use more permissive lock for zerver_message rows.

Bedo Khaledef568de80b87
diff --git a/puppet/zulip/files/postgresql/process_fts_updates b/puppet/zulip/files/postgresql/process_fts_updates
index bf1f65d5d96..155aa01dcf2 100755
--- a/puppet/zulip/files/postgresql/process_fts_updates
+++ b/puppet/zulip/files/postgresql/process_fts_updates
@@ -93,7 +93,7 @@ def update_fts_columns(conn: psycopg2.extensions.connection) -> int:
"WHERE ctid IN ("
" SELECT ctid FROM zerver_message"
" WHERE id IN %s"
- " ORDER BY id FOR UPDATE"
+ " ORDER BY id FOR NO KEY UPDATE"
")"
).format(update_sql=update_sql),
(message_ids,),