damn, how did this typo slip in :)
authorDomas Mituzas <midom@users.mediawiki.org>
Sat, 12 Jan 2008 23:12:51 +0000 (23:12 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Sat, 12 Jan 2008 23:12:51 +0000 (23:12 +0000)
includes/LoadBalancer.php

index 6efcbdd..a097ca6 100644 (file)
@@ -556,7 +556,7 @@ class LoadBalancer {
        /* Issue COMMIT only on master, only if queries were done on connection */
        function commitMasterChanges() {
                // Always 0, but who knows.. :)
-               $i = $this->getWriterIndex;
+               $i = $this->getWriterIndex();
                if (array_key_exists($i,$this->mConnections)) {
                        if ($this->mConnections[$i]->lastQuery != '') {
                                $this->mConnections[$i]->immediateCommit();