[FileBackend] Give warnings when metadata is missing from swift.
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 22 Oct 2012 17:41:43 +0000 (10:41 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 22 Oct 2012 17:41:43 +0000 (10:41 -0700)
Change-Id: I2ec2429c5fca02fbd8b5130b3f0db31faf6e365e

includes/filebackend/SwiftFileBackend.php

index e1b0a62..fed496a 100644 (file)
@@ -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() ) {