Work around hhvm bug in redis job queue
authorNik Everett <neverett@wikimedia.org>
Mon, 7 Jul 2014 20:17:39 +0000 (16:17 -0400)
committerNik Everett <neverett@wikimedia.org>
Mon, 7 Jul 2014 22:12:12 +0000 (18:12 -0400)
commit95bfc8b956e1fbf0992b717204ecebecbe40fb0e
tree3de33f1ce535e9c53379802dd15257715dba34dc
parent0d847cb55d8e9c3c0f40827828472fd9b25e1018
Work around hhvm bug in redis job queue

The hhvm redis client returns false instead of null.  This caused
JobQueueRedis to get stuck in an infinite loop.  This works around the
difference by catching null as a signal for no more jobs.

It can be reverted when https://github.com/facebook/hhvm/pull/3127/ is
in all versions of hhvm we expect to run MediaWiki.

Bug: 67622
Change-Id: I9bbad42f36a80635097b8e0140b48b6492b2f0f5
includes/jobqueue/JobQueueRedis.php