rdbms: rename DB server index parameter to LoadBalancer::getMaintenanceConnectionRef()
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 5 Apr 2019 04:20:26 +0000 (21:20 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 5 Apr 2019 04:20:26 +0000 (21:20 -0700)
Change-Id: I4a7a72f8cf61a0cc21d88cbb62614221f42e0540

includes/libs/rdbms/loadbalancer/ILoadBalancer.php

index b20bf04..0130c55 100644 (file)
@@ -291,13 +291,13 @@ interface ILoadBalancer {
         *
         * @see ILoadBalancer::getConnection() for parameter information
         *
-        * @param int $db Server index or DB_MASTER/DB_REPLICA
+        * @param int $i Server index or DB_MASTER/DB_REPLICA
         * @param array|string|bool $groups Query group(s), or false for the generic reader
         * @param string|bool $domain Domain ID, or false for the current domain
         * @param int $flags Bitfield of CONN_* class constants (e.g. CONN_TRX_AUTOCOMMIT)
         * @return MaintainableDBConnRef
         */
-       public function getMaintenanceConnectionRef( $db, $groups = [], $domain = false, $flags = 0 );
+       public function getMaintenanceConnectionRef( $i, $groups = [], $domain = false, $flags = 0 );
 
        /**
         * Open a connection to the server given by the specified index