Add more estimation modes to pendingWriteQueryDuration()
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 27 Aug 2016 10:57:26 +0000 (03:57 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 30 Aug 2016 01:36:17 +0000 (18:36 -0700)
commitdac1a29b431234e9b232d2653230aac9fe3bc47e
treeae004132ea7d618d0ad31ab78ded0c35ee014a98
parent46b029e17c478cdc06799b573f91cdc42402e512
Add more estimation modes to pendingWriteQueryDuration()

* Use this to exclude some common cases of harmless queries that
  happen to block on row-level locks for a long time. This does
  not apply to UPDATE/DELETE however, due to the ambiguity of
  time spent scanning vs locking.
* Update commitMasterChanges() and JobRunner to use the new
  mode to avoid pointless rollback or lag checks.

Change-Id: Ifc2743f2d8cd109840c45cda5028fbb4df55d231
includes/db/DBConnRef.php
includes/db/Database.php
includes/db/IDatabase.php
includes/db/loadbalancer/LoadBalancer.php
includes/jobqueue/JobRunner.php