Handle edge case in WikiPage::lock()
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 7 Oct 2015 20:42:42 +0000 (13:42 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 7 Oct 2015 21:21:39 +0000 (14:21 -0700)
commit895af6d03965c4c61498527fcd161eac07e8b269
tree1437ecd354e54953d79f1ecc8216856d460eba57
parent868aeed43150b5d0b387d46a2f441d317244908c
Handle edge case in WikiPage::lock()

If the page row for the title was replaced with another
row with the same title *and* page_latest but a different
page_id, callers will want to bail when doing CAS logic

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