Commit bde5a88d authored by Vincent Pelletier's avatar Vincent Pelletier

Revert "Products.CMFActivity.Activity.SQLBase: Drop "FOR UPDATE"."

This reverts commit 89aa2a6b.
The assumption that FOR UPDATE was unnecessary is wrong: when SQLDict
reserves similar activities, it will race against these primo-reservations.
So this change actually opens the possibility for duplicate activity
reservation.
Revert this change until (hopefully) a better fix is implemented.
parent e53f712e
Pipeline #28373 failed with stage
in 0 seconds
......@@ -774,7 +774,8 @@ CREATE TABLE %s (
b" processing_node=0 AND"
b" %s%s"
b" ORDER BY priority, date"
b" LIMIT %i" % args,
b" LIMIT %i"
b" FOR UPDATE" % args,
0,
))
else:
......@@ -787,6 +788,7 @@ CREATE TABLE %s (
b" %s%s"
b" ORDER BY priority, date"
b" LIMIT %i"
b" FOR UPDATE"
b")" % args).format
result = Results(query(
b"SELECT *"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment