Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/94480


Change subject: Fixed loading of stat cache entries into the wrong key
......................................................................

Fixed loading of stat cache entries into the wrong key

* Silly bug from 2afdc066f52b54faf63f9c980f7ef6a7841dd094 which caused HEAD
  requests. Probably missed in local testing due to memcached.

Change-Id: I3b82ffe964e252eafa5254f7752e5ba45b49ba0e
---
M includes/filebackend/SwiftFileBackend.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/80/94480/1

diff --git a/includes/filebackend/SwiftFileBackend.php 
b/includes/filebackend/SwiftFileBackend.php
index ec2e2c0..1787d66 100644
--- a/includes/filebackend/SwiftFileBackend.php
+++ b/includes/filebackend/SwiftFileBackend.php
@@ -1706,7 +1706,7 @@
                $relPath = substr( $path, $this->suffixStart );
                if ( is_array( $stat ) ) {
                        $storageDir = rtrim( $this->params['dir'], '/' );
-                       $this->backend->loadListingStatInternal( 
"$storageDir/$path", $stat );
+                       $this->backend->loadListingStatInternal( 
"$storageDir/$relPath", $stat );
                }
                return $relPath;
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/94480
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3b82ffe964e252eafa5254f7752e5ba45b49ba0e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to