diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index 63ce035b232..65f4efc09f5 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -779,6 +779,7 @@ class LocalFile extends File } $dbw = $this->repo->getMasterDB(); + $dbw->begin(); if ( !$props ) { $props = $this->repo->getFileProps( $this->getVirtualUrl() );