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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T26425, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24425 - SqlBagOStuff::set can fail
SqlBagOStuff::set can fail
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.17.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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.


Navigation
Links