rdbms: deprecate IMaintainableDatabase::(lock|unlock)Tables() methods

These methods are unused in WMF-hosted repos and are difficult to both
use and maintain due to RDBMS engine differences.

Bug: T294969
Change-Id: Ie2a5a81073efb85b4d7338ba159a12a8516fe1dc
This commit is contained in:
Aaron Schulz 2022-01-06 15:59:37 -08:00 committed by Tim Starling
parent f385d09369
commit 2f9e99d86d
2 changed files with 5 additions and 0 deletions

View file

@ -440,6 +440,9 @@ generic `mediawiki.pager.styles`.
`updateAriaExpanded` in checkboxHack.js have been deprecated.
`bindToggleOnSpaceEnter` has also been deprecated in favor of
`bindToggleOnEnter`.
* IDatabase::lockTables() and IDatabase::unlockTables() have been deprecated
with no replacement. Instead, callers should batch updates into atomic
transactions, using FOR UPDATE for SELECT queries.
* The HTMLForm methods getPreText, setPreText, addPreText, getPostText,
setPostText, addPostText, getHeaderText, setHeaderText, addHeaderText,
getFooterText, setFooterText and addFooterText have been renamed to

View file

@ -276,6 +276,7 @@ interface IMaintainableDatabase extends IDatabase {
* @param string $method Name of caller
* @return bool
* @since 1.29
* @deprecated Since 1.38
*/
public function lockTables( array $read, array $write, $method );
@ -287,6 +288,7 @@ interface IMaintainableDatabase extends IDatabase {
*
* @param string $method The caller
* @return bool
* @deprecated Since 1.38
* @since 1.29
*/
public function unlockTables( $method );