metabrainz/musicbrainz-server — pull request #12 by ianmcorvidae (2013-01-22 00:34:56+00:00)
Title: MBS-5762

Ensure that in a listing of edits, edits processed later in the queue cannot clobber loading of foreign keys required by earlier edits. Formerly, it could happen such:

edit 444 wants artist credits, work types, and language for work number 4567, adds them to the list

edit 446 wants artist credits (but nothing else) for work number 4567, and adds them to the list (but it does this by clobbering the set of things to load added by edit 444).

This patch makes sure it'll simply *add* things, not remove things added by other edits.

http://tickets.musicbrainz.org/browse/MBS-5762