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
This commit is contained in:
parent
0d847cb55d
commit
95bfc8b956
1 changed files with 1 additions and 1 deletions
|
|
@ -313,7 +313,7 @@ LUA;
|
|||
} else {
|
||||
$blob = $this->popAndDeleteBlob( $conn );
|
||||
}
|
||||
if ( $blob === false ) {
|
||||
if ( !is_string( $blob ) ) {
|
||||
break; // no jobs; nothing to do
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue