From 406bb1ef32e15410554866e0ec13f50955f0863f Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 22 Oct 2012 10:41:43 -0700 Subject: [PATCH] [FileBackend] Give warnings when metadata is missing from swift. Change-Id: I2ec2429c5fca02fbd8b5130b3f0db31faf6e365e --- includes/filebackend/SwiftFileBackend.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/filebackend/SwiftFileBackend.php b/includes/filebackend/SwiftFileBackend.php index e1b0a62f21..fed496afcf 100644 --- a/includes/filebackend/SwiftFileBackend.php +++ b/includes/filebackend/SwiftFileBackend.php @@ -786,6 +786,7 @@ class SwiftFileBackend extends FileBackendStore { return true; // nothing to do } wfProfileIn( __METHOD__ ); + trigger_error( "$path was not stored with SHA-1 metadata.", E_USER_WARNING ); $status = Status::newGood(); $scopeLockS = $this->getScopedFileLocks( array( $path ), LockManager::LOCK_UW, $status ); if ( $status->isOK() ) { -- 2.20.1