Avoid INSERT..SELECT in MovePage
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 19 Aug 2016 18:31:41 +0000 (11:31 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 19 Aug 2016 18:31:44 +0000 (11:31 -0700)
commit7cd8913897761f06c5aca1e9eedb6844355c934b
treebfeb0b561038a1ffd305169d0ce22e0348d02d79
parentcb2f2633919bcd24ad071844549a3a78e200e0c8
Avoid INSERT..SELECT in MovePage

That construct has poor locking characteristics in terms of
auto-inc columns as well as not allowing such inserts concurrently
for statement-based replication. Also, the INSERT..SELECT did not
have an ORDER BY, which could lead to pr_id drift with statement
based replication.

Change-Id: I47ca89abcbe4598d3b56cf077a47055500a0647f
includes/MovePage.php