Merge "MimeAnalyzer: Add testcases for mp3 detection"
[lhc/web/wiklou.git] / includes / libs / objectcache / MemcachedClient.php
index c3fcab9..5cb49a9 100644 (file)
@@ -469,7 +469,6 @@ class MemcachedClient {
         * @return mixed
         */
        public function get( $key, &$casToken = null ) {
-
                if ( $this->_debug ) {
                        $this->_debugprint( "get($key)" );
                }
@@ -1114,9 +1113,13 @@ class MemcachedClient {
                if ( $this->_debug ) {
                        $this->_debugprint( sprintf( "%s %s (%s)", $cmd, $key, $line ) );
                }
-               if ( $line == "STORED" ) {
+               if ( $line === "STORED" ) {
+                       return true;
+               } elseif ( $line === "NOT_STORED" && $cmd === "set" ) {
+                       // "Not stored" is always used as the mcrouter response with AllAsyncRoute
                        return true;
                }
+
                return false;
        }