rdbms: Add callback for atomic section cancellation
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 4 Jun 2019 18:43:18 +0000 (14:43 -0400)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 28 Jun 2019 03:09:42 +0000 (20:09 -0700)
commitf8b48c99bfa6ec13524abcb946559603ece2450b
tree4e8c4590b56771479b8e0c93f4dd5de3ba0b8621
parent5bcb9f59b0db5bfcef1b5f553447108189953ac6
rdbms: Add callback for atomic section cancellation

The callback will be called immediately when the section is cancelled,
whether that occurs directly, or via cancelling of an outer section, or
via rollback of the entire transaction.

Change-Id: Id05296948b52b95544547bd38c4387496b6c83b9
includes/libs/rdbms/database/DBConnRef.php
includes/libs/rdbms/database/Database.php
includes/libs/rdbms/database/IDatabase.php
tests/phpunit/includes/libs/rdbms/database/DatabaseSQLTest.php