The link cache is constructed without FOR UPDATE, so collisions in these insert state...
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 5 Jul 2004 03:02:47 +0000 (03:02 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 5 Jul 2004 03:02:47 +0000 (03:02 +0000)
commitc31cc66f5273d31d3bfb9a9eb9ebebbb2915d2bf
tree61bab5e8537352cfd65b87505c766e2de234e95f
parentaa6ed109f390b43c09c326d0e282e79f5fcf39f3
The link cache is constructed without FOR UPDATE, so collisions in these insert statements appear to be possible, and judging by the DB error log and reports of link table corruption, quite common. Ignoring errors prevents the wholesale failure of a link table update, although it's possible links which should have been removed may remain. Hence this is a temporary solution, a better solution may be to switch LinkCache to FOR UPDATE mode
includes/LinksUpdate.php