Fixed return value for RedisBagOStuff::cas().
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 23 Apr 2013 21:31:52 +0000 (14:31 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 23 Apr 2013 21:31:52 +0000 (14:31 -0700)
Change-Id: I3b180baaba8fb12ab2960e358c8b6d1a1eac05dd

includes/objectcache/RedisBagOStuff.php

index f9feaf9..1f64b69 100644 (file)
@@ -140,7 +140,7 @@ class RedisBagOStuff extends BagOStuff {
                                $conn->setex( $key, $expiry, $value );
                        }
 
-                       $result = $conn->exec();
+                       $result = ( $conn->exec() == array( true ) );
                } catch ( RedisException $e ) {
                        $result = false;
                        $this->handleException( $server, $conn, $e );