Fixed check of BagOStuff set() return value in mctest
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 17 Sep 2013 22:23:44 +0000 (15:23 -0700)
committerBryanDavis <bdavis@wikimedia.org>
Wed, 18 Sep 2013 18:23:59 +0000 (18:23 +0000)
Change-Id: I6e69cdc24b9b40132641205cb40f64bb5db45f70

maintenance/mctest.php

index 28b041a..eda101e 100644 (file)
@@ -80,7 +80,7 @@ class mcTest extends Maintenance {
                        $get = 0;
                        $time_start = $this->microtime_float();
                        for ( $i = 1; $i <= $iterations; $i++ ) {
-                               if ( !is_null( $mcc->set( "test$i", $i ) ) ) {
+                               if ( $mcc->set( "test$i", $i ) ) {
                                        $set++;
                                }
                        }