From: Aaron Schulz Date: Mon, 22 Oct 2012 17:41:43 +0000 (-0700) Subject: [FileBackend] Give warnings when metadata is missing from swift. X-Git-Tag: 1.31.0-rc.0~21913 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=406bb1ef32e15410554866e0ec13f50955f0863f;p=lhc%2Fweb%2Fwiklou.git [FileBackend] Give warnings when metadata is missing from swift. Change-Id: I2ec2429c5fca02fbd8b5130b3f0db31faf6e365e --- 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() ) {