Page MenuHomePhabricator

SqlBagOStuff::set can fail
Closed, ResolvedPublic

Description

Function: SqlBagOStuff::set
Error: 1062 Duplicate entry 'mediawiki-bw_:translate-groups' for key 1 (localhost)

I guess this is because two threads were trying to update it at the same time. In my opinion it should not throw an exception in cases like this.


Version: 1.17.x
Severity: normal

Details

Reference
bz24425

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:11 PM
bzimport set Reference to bz24425.
bzimport added a subscriber: Unknown Object (MLST).

set() uses a delete() followed by an insert() ; it should use replace() instead.