MultiWriteBagOStuff: Fix async writes of mutable objects
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 7 Jul 2017 13:51:00 +0000 (09:51 -0400)
committerTim Starling <tstarling@wikimedia.org>
Tue, 25 Jul 2017 02:08:00 +0000 (02:08 +0000)
commitedf69e62d851ba02b0c44db0aab05b4da8144c4e
treea92ffedd069f9643e8c006543e23c14e5f738eb3
parent1a81ba9bcb801de0be82fbd44332dada53800879
MultiWriteBagOStuff: Fix async writes of mutable objects

If someone writes an object into a BagOStuff, they typically expect that
later changes to the object will not affect the value stored.
MultiWriteBagOStuff's async write handling was violating this
expectation, which is potentially causing T168040.

Bug: T168040
Change-Id: Ie897b900befdc8998614af06f9339cd07665703e
includes/libs/objectcache/MultiWriteBagOStuff.php
tests/phpunit/includes/libs/objectcache/MultiWriteBagOStuffTest.php