Make populateRevisionLength fix rows with ar_len = 0.
authordaniel <daniel.kinzler@wikimedia.de>
Mon, 23 Apr 2018 09:07:24 +0000 (11:07 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Mon, 23 Apr 2018 18:22:36 +0000 (20:22 +0200)
commite420790f5200568422dce9473ef44d4f7cefe675
treec0d68eb41fa6dca63328e822478a8dffb7597eca
parenta051253c1eb5682ad72e07e9926be6dbe2165d32
Make populateRevisionLength fix rows with ar_len = 0.

Due to T192189, some rows in the archive table may have ar_len set to 0
erronously. This can be detected by checking if they have ar_sha1 set to
"phoiac9h4m842xq45sp7s6u21eteeq1", which is the hash of the empty string.

This patch makes populateRevisionLength.php detect and fix such rows.

Bug: T192189
Change-Id: I9b6cd62f4b8c5bf93cd305b56af4352a527e19c9
maintenance/populateRevisionLength.php