Revision->insertOn: Set READ_LATEST flag
authorMatthew Flaschen <mflaschen@wikimedia.org>
Thu, 6 Oct 2016 04:31:30 +0000 (00:31 -0400)
committerMatthew Flaschen <mflaschen@wikimedia.org>
Thu, 6 Oct 2016 04:31:30 +0000 (00:31 -0400)
commit1588b1837665d9b2d629b4c141e7b6bb0b92e6ff
treeb083e6db567e894558536ba02d807b06c33bc5c8
parent5412c2f4a16bf3ee420f4f621a2821899b692434
Revision->insertOn: Set READ_LATEST flag

Inserting new revisions requires master by definition.  Without this,
there can be problems when creating multiple revisions in a
transaction (i.e. a null revision pointed to a text_id borrowed
from a just-created revision).

Bug: T138310
Change-Id: I10773612f04b6525f9c8bc27a96bcb8a77831816
includes/Revision.php