From 85ae757734dc370e87fff120ff8a31fd5dbe4bc2 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Fri, 22 Jun 2007 22:00:58 +0000 Subject: [PATCH] getLag() returns false, not 0. Add reminder about future code refactoring. --- includes/DatabasePostgres.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/DatabasePostgres.php b/includes/DatabasePostgres.php index ef20292a5d..4b1ba1c584 100644 --- a/includes/DatabasePostgres.php +++ b/includes/DatabasePostgres.php @@ -155,6 +155,7 @@ class DatabasePostgres extends Database { $this->mOpened = true; ## If this is the initial connection, setup the schema stuff and possibly create the user + ## TODO: Move this out of open() if (defined('MEDIAWIKI_INSTALL')) { global $wgDBname, $wgDBuser, $wgDBpassword, $wgDBsuperuser, $wgDBmwschema, $wgDBts2schema; @@ -1177,11 +1178,10 @@ END; /** * How lagged is this slave? * - * @return int */ public function getLag() { # Not implemented for PostgreSQL - return 0; + return false; } } // end DatabasePostgres class -- 2.20.1