Last modified: 2010-07-30 19:58:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 24425 - SqlBagOStuff::set can fail
SqlBagOStuff::set can fail
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2010-07-18 07:27 UTC by Niklas Laxström
Modified: 2010-07-30 19:58 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Niklas Laxström 2010-07-18 07:27:43 UTC
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.
Comment 1 Roan Kattouw 2010-07-18 12:27:08 UTC
set() uses a delete() followed by an insert() ; it should use replace() instead.
Comment 2 Ryan Schmidt 2010-07-30 19:58:10 UTC
Fixed in r70203

Note You need to log in before you can comment on or make changes to this bug.