From 8fd8374c3477c4a12d76f1953cb3aee98fd368f8 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 23 Jul 2004 12:36:22 +0000 Subject: [PATCH] fixed bug with masterPosWait() --- includes/Database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Database.php b/includes/Database.php index 29d7e96fc3..2771995020 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -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 ); -- 2.20.1