Import: Try to stop revisions getting created with rev_page = 0
authorThis, that and the other <at.light@live.com.au>
Sun, 3 Jan 2016 13:30:24 +0000 (00:30 +1100)
committerReedy <reedy@wikimedia.org>
Sun, 3 Jan 2016 21:56:02 +0000 (21:56 +0000)
commit2cc10db0426d0181e9ffb4f73d050fb8068d4621
tree74ef86e37b1a08a6d6805d0c644342626349cc40
parentb382fb4c38f6eea8ed9dede7ca1f00bd35215bd4
Import: Try to stop revisions getting created with rev_page = 0

It seems that when two simultaneous imports of the same page are started,
we get into the situation where $pageId is 0 (or at least something that
is transformed to 0 when inserted into the DB).

I can't reproduce this locally, so I can't tell you *why* this is
happening. But what is important is to stop it from happening.

Bug: T18674
Change-Id: I79406a1ef8e5db9a31f029438f8132ef590216fe
includes/import/WikiRevision.php