populateRevisionLength: Read from slaves when possible
authorBartosz Dziewoński <matma.rex@gmail.com>
Sun, 22 May 2016 20:48:11 +0000 (22:48 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sun, 22 May 2016 20:48:11 +0000 (22:48 +0200)
commit4e214028863cf78dd14418ec7ff179dd55f6c474
tree2cde87edf22ffac69d526b668d1ebbf06e142465
parent887ba639a2b8d8f8a40babf93524eb05b1387c71
populateRevisionLength: Read from slaves when possible

The references to revision content stored in 'revision' and 'archive'
tables are immutable (outside of other maintenance scripts), so we can
safely query them from slave databases.

Also:
* Avoid transactions with no operations inside them
* Improve documentation

Bug: T135414
Change-Id: I3e1407e18e09cf01f105c1cae6d6c23bfde747e6
maintenance/populateRevisionLength.php