Use the LoadBalancer id in flushPrimarySessions(), not the LBFactory one, and use assertOwnership() to check $owner, similar to other methods. In DatabaseMysqlBase::doFlushSession(), change RELEASE_ALL_LOCKS() query to use RELEASE_LOCK(), since only newer MariaDB versions (>=10.5.2) support it. No errors were thrown in the method since they are suppressed, but the syntax error would cause the transaction to be placed in an error state. Add assertion to testTransactionCallbackChains() that would otherwise fail. Randomize lock names in lock() tests to avoid contention. Bug: T292239 Bug: T303887 Follow-Up: |
||
|---|---|---|
| .. | ||
| DatabaseMysqlTest.php | ||
| DatabasePostgresTest.php | ||
| DatabaseSqliteTest.php | ||
| DatabaseSqliteUpgradeTest.php | ||