Skip to content

Commit

Permalink
Default redis db to null to avoid select
Browse files Browse the repository at this point in the history
twemproxy does not support the select command so using it will break it.  Only use if user explicitly sets it.
  • Loading branch information
daneren2005 committed Sep 22, 2015
1 parent 3042c17 commit 3fb31d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Resque.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Resque
/**
* @var int ID of Redis database to select.
*/
protected static $redisDatabase = 0;
protected static $redisDatabase = null;

/**
* Given a host/port combination separated by a colon, set it as
Expand All @@ -38,7 +38,7 @@ class Resque
* a nested array of servers with host/port pairs.
* @param int $database
*/
public static function setBackend($server, $database = 0)
public static function setBackend($server, $database = null)
{
self::$redisServer = $server;
self::$redisDatabase = $database;
Expand Down

0 comments on commit 3fb31d0

Please sign in to comment.