Index: trunk/phase3/includes/BagOStuff.php |
— | — | @@ -390,7 +390,8 @@ |
391 | 391 | } |
392 | 392 | function _doinsert($t, $v) { |
393 | 393 | $dbw =& wfGetDB( DB_MASTER ); |
394 | | - return $dbw->insert($t, $v, 'MediaWikiBagOStuff::_doinsert'); |
| 394 | + return $dbw->insert($t, $v, 'MediaWikiBagOStuff::_doinsert', |
| 395 | + array( 'IGNORE' ) ); |
395 | 396 | } |
396 | 397 | function _fetchobject($result) { |
397 | 398 | $dbw =& wfGetDB( DB_MASTER ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -215,6 +215,8 @@ |
216 | 216 | * Added placeholders for text injection by hooks to EditPage.php |
217 | 217 | * (bug 8009) Automatic edit summary for redirects is not filled for edits in existing pages |
218 | 218 | * Installer support for experimental MySQL 4.1/5.0 binary-safe schema |
| 219 | +* Use INSERT IGNORE for db-based BagOStuff add/insert, for more memcache-like |
| 220 | + behavior when keys already exist on add (instead of dying with an error...) |
219 | 221 | |
220 | 222 | |
221 | 223 | == Languages updated == |