neo4j/community — pull request #594 by systay (2012-06-09 07:46:35+00:00)
Title: RELATE now locks nodes before creating new graph elements

To make sure that multiple RELATE statements fired of concurrently do not by mistake create multiple paths, RELATE now uses double-checked locking to make sure only a single path is created.