Avoid INSERT..SELECT in doArticleDeleteReal()
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 19 Aug 2016 09:06:11 +0000 (02:06 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 23 Aug 2016 16:51:17 +0000 (16:51 +0000)
commit673371e2c71b8d1420a29309b8455ce8c6de8a33
tree290e89e2004e95c863504810a13d19625648de8c
parent023319f73416ec6869656975fc708afab805532a
Avoid INSERT..SELECT in doArticleDeleteReal()

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 ar_id drift with statement
based replication.

Change-Id: I9396869e474bc082fa6161b60afa3a5247df773b
includes/page/WikiPage.php