Fix name of PoolCounter callback in thumb.php
authorBrian Wolff <bawolff+wn@gmail.com>
Thu, 5 Nov 2015 06:59:58 +0000 (23:59 -0700)
committerBrian Wolff <bawolff+wn@gmail.com>
Thu, 5 Nov 2015 07:16:56 +0000 (00:16 -0700)
commitb47a86316dad7737d76a94c3de9895858e280750
tree420bf2264788838fba82b0dd6c51d9a41efcb46a
parent988738643f0d4fbb739ab935e260dbe0d2d322c3
Fix name of PoolCounter callback in thumb.php

The callback is named doCachedWork, not getCachedWork. The typo
made it so that if multiple people try to render a file at once,
MediaWiki would not check if the last person to go already did the
needed work.

This might not make as much difference as it would sound, as the
pool counter lock is for the entire file, not a specific size,
and I'm unsure if swift has an equivalent of "slave lag", where the
check to see if a cached version is available might happen before
the write is totally visible.

Also merge the fallback handler into the error handler, so we get
actually error messages reported.

Change-Id: I12d228961de39cffc3d492554d93e30bd741adc9
thumb.php