wiki.techinc.nl/includes/libs/rdbms/database
Aaron Schulz db36853718 rdbms: make automatic connection recovery more robust
Rename canRecoverFromDisconnect() in order to better describe
its function. Make it use the transaction ID and query walltime
as arguments and return an ERR_* class constant instead of a bool.
Avoid retries of slow queries that yield lost connection errors.

Track session state errors caused by the loss of named locks or
temp tables (e.g. during connection loss). Such errors will prevent
further queries except for rollback() and flushSession(), which must
be issued to resolve the error.

Add flushPrimarySessions() methods to LBFactory/LoadBalancer
and use it in places where session state loss is meant to be
safely aknowledged.

Change-Id: I60532f86e629c83b357d4832d1963eca17752944
2022-04-14 11:09:31 +10:00
..
domain rdbms: Add more return typehints 2021-09-07 08:23:36 +00:00
position Remove DBMasterPos as an alias for DBPrimaryPos 2022-03-27 21:15:19 +02:00
resultwrapper Apply ReturnTypeWillChange to various implementations of built in interfaces 2022-01-25 10:58:13 +00:00
utils rdbms: make automatic connection recovery more robust 2022-04-14 11:09:31 +10:00
Database.php rdbms: make automatic connection recovery more robust 2022-04-14 11:09:31 +10:00
DatabaseMysqlBase.php rdbms: make automatic connection recovery more robust 2022-04-14 11:09:31 +10:00
DatabaseMysqli.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
DatabasePostgres.php rdbms: make automatic connection recovery more robust 2022-04-14 11:09:31 +10:00
DatabaseSqlite.php rdbms: make automatic connection recovery more robust 2022-04-14 11:09:31 +10:00
DBConnRef.php rdbms: make automatic connection recovery more robust 2022-04-14 11:09:31 +10:00
IDatabase.php rdbms: make automatic connection recovery more robust 2022-04-14 11:09:31 +10:00
IMaintainableDatabase.php rdbms: make automatic connection recovery more robust 2022-04-14 11:09:31 +10:00
MaintainableDBConnRef.php rdbms: fix reference variables in MaintainableDBConnRef::streamStatementEnd() 2021-03-25 17:48:12 -07:00
TransactionManager.php rdbms: make automatic connection recovery more robust 2022-04-14 11:09:31 +10:00