Use commit-and-wait when processing more than updateRowsPerQuery
authorKosta Harlan <kharlan@wikimedia.org>
Mon, 5 Nov 2018 20:44:40 +0000 (15:44 -0500)
committerKosta Harlan <kharlan@wikimedia.org>
Mon, 5 Nov 2018 20:49:33 +0000 (15:49 -0500)
commitee63d2bf20ea797e26391a1f08c1220950bca991
tree2d9db99bc7ab8d896cbb78ec42e9b20d1b128961
parentdd67c0b66a375b9cfd760ecbc1d58cbbbe82841d
Use commit-and-wait when processing more than updateRowsPerQuery

This is needed to avoid triggering "does not have outer scope" errors when
addWatchBatchForUser() is invoked from WatchAction::doWatch() or
WatchAction::doUnwatch() in the context of uploading a file, moving a page, or
other instances when we don't have outer scope.

Bug: T208003
Change-Id: Ice5cb8fced64883476daea5cdac36e47dfcccb61
includes/watcheditem/WatchedItemStore.php