Avoid TransactionProfiler notices for TEMPORARY table writes
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 19 Sep 2016 21:15:05 +0000 (14:15 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 19 Sep 2016 23:49:56 +0000 (16:49 -0700)
commit0dd19856b044cfc19697327575dda1f732ac3ab1
tree5b50615a9540b62a569b9fbb478889ada947f54e
parent1f62653f2aa7e9a0650ada330eff695621420e66
Avoid TransactionProfiler notices for TEMPORARY table writes

* Make Database detect and track temporary tables for the session.
  Creating, dropping, and updating them do not count as "write" queries.
  Even a read-only mysql slave can have these operations performed on it
  and it can be useful for complex read queries that need temporary results.
* Rename handleTransactionLoss() to handleSessionLoss() and cover named locks too.

Bug: T145947
Change-Id: I826439e9e9f550f32a9c46b3dd60e8e8015aa274
includes/libs/rdbms/database/Database.php