*
* @file
* @ingroup Database
- * @author Aaron Schulz
*/
namespace Wikimedia\Rdbms;
/**
* Open a connection to the server given by the specified index
- * Index must be an actual index into the array.
- * If the server is already open, returns it.
+ *
+ * The index must be an actual index into the array. If a connection to the server is
+ * already open and not considered an "in use" foreign connection, this simply returns it.
*
* @note If disable() was called on this LoadBalancer, this method will throw a DBAccessError.
*
- * @param int $i Server index or DB_MASTER/DB_REPLICA
+ * @param int $i Server index (does not support DB_MASTER/DB_REPLICA)
* @param string|bool $domain Domain ID, or false for the current domain
* @return Database|bool Returns false on errors
* @throws DBAccessError
* Return the server info structure for a given index, or false if the index is invalid.
* @param int $i
* @return array|bool
+ *
+ * @deprecated Since 1.30, no alternative
*/
public function getServerInfo( $i );
* is created if it doesn't exist
* @param int $i
* @param array $serverInfo
+ *
+ * @deprecated Since 1.30, construct new object
*/
public function setServerInfo( $i, array $serverInfo );