fixed bug with masterPosWait()
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 23 Jul 2004 12:36:22 +0000 (12:36 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 23 Jul 2004 12:36:22 +0000 (12:36 +0000)
includes/Database.php

index 29d7e96..2771995 100644 (file)
@@ -818,9 +818,9 @@ class Database {
        }
 
        # Do a SELECT MASTER_POS_WAIT()
-       function masterPosWait( $file, $pos ) {
+       function masterPosWait( $file, $pos, $timeout ) {
                $encFile = $this->strencode( $file );
-               $sql = "SELECT MASTER_POS_WAIT('$encFile', $pos)";
+               $sql = "SELECT MASTER_POS_WAIT('$encFile', $pos, $timeout)";
                $res = $this->query( $sql, "Database::masterPosWait" );
                if ( $res && $row = $this->fetchRow( $res ) ) {
                        $this->freeResult( $res );