Avoid "Incorrect user-level lock name " errors in Database lock() method
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 16 Dec 2015 05:34:52 +0000 (21:34 -0800)
committerKrinkle <krinklemail@gmail.com>
Wed, 16 Dec 2015 16:00:46 +0000 (16:00 +0000)
commit7643d7d885e4d7b6d8b02b81af48abae8c727003
tree83f1f55a1c1e202333b0fbf54ccbd93f185a87d5
parentb042c5cc31dd5d3525f17bd3980c8493d5283565
Avoid "Incorrect user-level lock name " errors in Database lock() method

Use a sha1 hash if the lock name exceeds the MySQL limit. The class
for Postgres already avoids this problem with number hashes.

Change-Id: If587c672b4ff210ee3b512bbe2910ae247079d3f
includes/db/DatabaseMysqlBase.php