Made runJobs.php fully respect $wgJobBackoffThrottling
[lhc/web/wiklou.git] / includes / objectcache / MemcachedPeclBagOStuff.php
index 0c3b228..1c780b4 100644 (file)
@@ -176,17 +176,6 @@ class MemcachedPeclBagOStuff extends MemcachedBagOStuff {
                return $this->checkResult( $key, parent::add( $key, $value, $exptime ) );
        }
 
-       /**
-        * @param $key string
-        * @param $value int
-        * @param $exptime
-        * @return Mixed
-        */
-       public function replace( $key, $value, $exptime = 0 ) {
-               $this->debugLog( "replace($key)" );
-               return $this->checkResult( $key, parent::replace( $key, $value, $exptime ) );
-       }
-
        /**
         * @param $key string
         * @param $value int
@@ -242,6 +231,7 @@ class MemcachedPeclBagOStuff extends MemcachedBagOStuff {
                                        $msg = "Memcached error: $msg";
                                }
                                wfDebugLog( 'memcached-serious', $msg );
+                               $this->setLastError( BagOStuff::ERR_UNEXPECTED );
                }
                return $result;
        }