Needs work
Project:
Workbench Moderation
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2014 at 16:56 UTC
Updated:
22 Nov 2016 at 09:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
hefox commentedPatch against stable, but code in dev looks same so hopefully applies to -dev also
Comment #2
hefox commentedActually, this patch may fix the deadlock -- see this blog for that update on empty rows followed by insert can deadlock.
Comment #3
hefox commentedReproduced it via command line
T1: UPDATE workbench_moderation_node_history set published = 0 where nid = 4701;
T2: UPDATE workbench_moderation_node_history set published = 0 where nid = 4711;
T1: INSERT INTO workbench_moderation_node_history (vid, nid, from_state, state, uid, stamp, published, current) VALUES ('8031', '4701', 'draft', 'published', '1', '1398368911', '1', '1')
T2: INSERT INTO workbench_moderation_node_history (vid, nid, from_state, state, uid, stamp, published, current) VALUES ('8031', '4711', 'draft', 'published', '1', '1398368911', '1', '1')
Where t1 and t2 are separate transactions. The last statements results in a deadlock.
Comment #4
beeradb commented+1 from me. We were getting deadlocks in workbench_moderation_node_history during automation runs a few times a day and this patch has fixed the issue.
Comment #5
tracker2k commentedHere is updated patch for latest version.
Comment #6
alansaviolobo commentedupdating patch for version 7.x-3.x