After upgrading to mediawiki 1.32.0, running updateSearchIndex.php results in:
Updating searchindex between 20190116040016 and 20190117171125 --- Waiting for lock --- <MyPageName>...[664e1ee17e4f2336e1e73f58] [no req] Wikimedia\Rdbms\DBQueryError from line 1496 of /opt/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? Query: SELECT slot_revision_id,slot_content_id,slot_origin,slot_role_id,content_size,content_sha1,content_address,content_model FROM `slots` INNER JOIN `content` ON ((slot_content_id = content_id)) WHERE slot_revision_id = '46171' Function: MediaWiki\Revision\RevisionStore::loadSlotRecords Error: 1100 Table 'slots' was not locked with LOCK TABLES (MyDBServerHostname)
Fix is to add 'slots' and 'content' to Maintenance.php lockSearchindex()