Move updateNotificationTimestamp callback to DeferredUpdates
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 19 Jul 2016 19:51:57 +0000 (12:51 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 19 Jul 2016 22:27:29 +0000 (15:27 -0700)
commit140da10741c9850fa58c06f28003c3216b6f27a5
tree99b59760856ccdbcddbc674c40cea4ecca08db8d
parente6ea31181c4da3b4cdfd7a811474042a3efddc12
Move updateNotificationTimestamp callback to DeferredUpdates

* This puts the complex logic here after the commit step for
  all DBs, making the main multi-DB transaction more likely
  to be atomic.
* Also fixed the reuseConnection() call by getting a new
  handle in the callback.

Change-Id: I449a521423ff13bfbf49bdaa6e7e6df2145c8751
includes/WatchedItemStore.php
tests/phpunit/includes/WatchedItemStoreUnitTest.php