rdbms: do not bother making DBO_TRX transactions in IDatabase::lock()
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 14 Feb 2018 08:27:14 +0000 (00:27 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 16 Feb 2018 00:32:35 +0000 (16:32 -0800)
commitc9ad7037cef3b0a96b2b0e22e21eb7d1e7204d42
treea10366fd23cd0f72986b130b8c925b5fc122f3ec
parent3ff078137ab823b36000699828c564dabb0ffa55
rdbms: do not bother making DBO_TRX transactions in IDatabase::lock()

Named locks are session-level constructs and this transaction agnostic.
Also make lockIsFree() a bit more consistent when the thread has the
lock itself.

Change-Id: Ief51196161bbc50c798740f3c738fd0e39880508
includes/libs/rdbms/database/Database.php
includes/libs/rdbms/database/DatabaseMysqlBase.php
includes/libs/rdbms/database/DatabasePostgres.php
includes/libs/rdbms/database/IDatabase.php
tests/phpunit/includes/libs/rdbms/database/DatabaseTest.php