Follows-up T296960: Remove unused or barely used functions of IDatabase
This is to do a first quick check of unused functions and remove any low-hanging fruits. More clean ups will come later.
ILoadBalancer:
- waitForOne 2
- finalizeMasterChanges 2
- approveMasterChanges 2
- runMasterTransactionIdleCallbacks 2
- runMasterTransactionListenerCallbacks 2
- flushMasterSnapshots 2
- hasMasterConnection 2
- lastMasterChangeTimestamp 2
- pendingMasterChangeCallers 2
- allowLagged 2
- forEachOpenMasterConnection 2
- forEachOpenReplicaConnection 2
- waitForMasterPos 2
- setTempTablesOnlyMode 3
- getServerConnection 3
- getMasterPos 3
- flushPrimarySnapshots 3
- hasPrimaryConnection 3
- lastPrimaryChangeTimestamp 3
- pendingPrimaryChangeCallers 3
- getLaggedReplicaMode 3
- pingAll 3
- forEachOpenConnection 3
- hasReplicaServers 4
- getReplicaResumePos 4
- finalizePrimaryChanges 4
- approvePrimaryChanges 4
- beginMasterChanges 4
- commitMasterChanges 4
- runPrimaryTransactionIdleCallbacks 4
- runPrimaryTransactionListenerCallbacks 4
- rollbackMasterChanges 4
- hasMasterChanges 4
- waitFor 5
- getServerAttributes 5
- hasPrimaryChanges 5
- hasOrMadeRecentMasterChanges 5
- laggedReplicaUsed 5
- forEachOpenPrimaryConnection 5
- waitForPrimaryPos 5
- redefineLocalDomain 6
- getReaderIndex 6
- waitForAll 6
- commitAll 6
- setLocalDomainPrefix 6
- getServerType 7
- flushReplicaSnapshots 7
- getAnyOpenConnection 8
- setTransactionListener 8
- setIndexAliases 8
- hasStreamingReplicaServers 9
And ILBFactory:
- Option "groupLoadsByDB". https://gerrit.wikimedia.org/r/c/mediawiki/core/+/752214
- setAgentName 2
- getChronologyProtectorClientId 2
- isReadyForRoundOperations 3
- setWaitForReplicationListener 3
- appendShutdownCPIndexAsQuery 3
- setDefaultReplicationWaitTimeout 3
- beginMasterChanges 4
- commitMasterChanges 4
- rollbackMasterChanges 4
- hasMasterChanges 4
- getChronologyProtectorTouched 4
- setRequestInfo 4
- newExternalLB 5
- hasTransactionRound 5
- hasPrimaryChanges 5
- laggedReplicaUsed 5
- hasOrMadeRecentMasterChanges 5
- disableChronologyProtection 5
- redefineLocalDomain 6
- getAllMainLBs 6
- getAllExternalLBs 6
- commitAll 6
- setLocalDomainPrefix 6
- flushReplicaSnapshots 7
- setIndexAliases 8
- forEachLB 9