Use master DB to check for page existence during import
authorThis, that and the other <at.light@live.com.au>
Tue, 22 Jul 2014 02:02:39 +0000 (12:02 +1000)
committerLegoktm <legoktm.wikipedia@gmail.com>
Sat, 26 Jul 2014 06:54:50 +0000 (06:54 +0000)
commit0afc858296811d447370855c372489a5e1e0ae5e
tree81ea467bf994afcc1cbf339613e6749ade02be18
parentc3fcaba02f7fbc4af288f716f630f6cbf0389221
Use master DB to check for page existence during import

By default, slaves are used for the existence check. However, in the case
of importing many revisions of the one page, the chances are that they
won't have caught up to the fact that that page has just been created,
causing site statistics to be incorrectly updated. We need to use the
master DB for this check.

Bug: 40009
Change-Id: I301353fb976a982f58635b87d9960d81fc541d14
includes/Import.php