From 3fb31d02ea286b746cb877d494a389a31e83ad2e Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 22 Sep 2015 15:07:32 -0700 Subject: [PATCH] Default redis db to null to avoid select twemproxy does not support the select command so using it will break it. Only use if user explicitly sets it. --- lib/Resque.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Resque.php b/lib/Resque.php index efe7f257..9ceb7c33 100644 --- a/lib/Resque.php +++ b/lib/Resque.php @@ -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 @@ -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;