Deadlock issue on my server I am getting the following error:


  PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction: INSERT INTO {domain_source} (nid, domain_id) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1); Array([:db_insert_placeholder_0] => 101712 [:db_insert_placeholder_1] => 0)


This happens hook_node_update(). Do you have an idea on how to solve the issue?
After applying this Patch, these errors are reduced however not fully rectified. This patch prevents empty delete queries being run and thus reducing the load on the domain_source table.