(bug 26895) in /include/db/LoadBalancer.php function "closeConnecton" should be calle...
authorSam Reed <reedy@users.mediawiki.org>
Mon, 24 Jan 2011 01:00:29 +0000 (01:00 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 24 Jan 2011 01:00:29 +0000 (01:00 +0000)
Seemingly no callers in extensions OR phase3 (weird...), searching for "closeConnecton" or the correctly spelt "closeConnection"

The back-compat typo thing probably wants removing.. Seems to have been as such since it was added in r32578...

includes/db/LoadBalancer.php

index 2be8fd3..e6dfd6a 100644 (file)
@@ -760,12 +760,21 @@ class LoadBalancer {
                );
        }
 
+       /**
+        * Deprecated function, typo in function name
+        */
+       function closeConnecton( $conn ) {
+               $this->closeConnection( $conn );
+       }
+
        /**
         * Close a connection
         * Using this function makes sure the LoadBalancer knows the connection is closed.
         * If you use $conn->close() directly, the load balancer won't update its state.
+        * @param  $conn
+        * @return void
         */
-       function closeConnecton( $conn ) {
+       function closeConnection( $conn ) {
                $done = false;
                foreach ( $this->mConns as $i1 => $conns2 ) {
                        foreach ( $conns2 as $i2 => $conns3 ) {