Replace FOR UPDATE with LockManager use in LocalFile::lock()
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 20 May 2014 21:22:52 +0000 (14:22 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 20 May 2014 21:22:52 +0000 (14:22 -0700)
commit399198c28e50539b9626d8c8590337aedd9d23c1
tree89d20f919e7d25b1792d7aa962e0df1b6fc58295
parentcbd8ec6dde468f6f8529f100cd1e8a625c5bec15
Replace FOR UPDATE with LockManager use in LocalFile::lock()

* This avoids excess contention where inserts of rows for
  similarly named files get blocked. This often would effect
  users of UploadWizard or any bot doing mass uploads.

Change-Id: Ie7a328f7d4f03aa249770804417347a50356ea42
includes/filebackend/FileBackend.php
includes/filerepo/file/LocalFile.php