(bug 10104) Provide stub "getLag()" function for DatabaseOracle and DatabasePostgres
authorRob Church <robchurch@users.mediawiki.org>
Mon, 4 Jun 2007 21:43:02 +0000 (21:43 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Mon, 4 Jun 2007 21:43:02 +0000 (21:43 +0000)
RELEASE-NOTES
includes/DatabaseOracle.php
includes/DatabasePostgres.php

index 933fc87..4271333 100644 (file)
@@ -114,6 +114,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   set [now prints out a warning]
 * (bug 10118) Introduced Special:Mostlinkedtemplates, report which lists
   templates with a high number of inclusion links
+* (bug 10104) Fixed Database::getLag() for PostgreSQL and Oracle
 
 == MediaWiki API changes since 1.10 ==
 
index 2b720df..0e69909 100644 (file)
@@ -675,10 +675,19 @@ echo "error!\n";
        }
 
        function ping() {
-               wfDebug( "Function ping() not written for DatabasePostgres.php yet");
+               wfDebug( "Function ping() not written for DatabaseOracle.php yet");
                return true;
        }
 
+       /**
+        * How lagged is this slave?
+        *
+        * @return int
+        */
+       public function getLag() {
+               # Not implemented for Oracle
+               return 0;
+       }
 
 } // end DatabaseOracle class
 
index b5721db..d5ae93c 100644 (file)
@@ -1177,7 +1177,16 @@ END;
                wfDebug( "Function ping() not written for DatabasePostgres.php yet");
                return true;
        }
-
+       
+       /**
+        * How lagged is this slave?
+        *
+        * @return int
+        */
+       public function getLag() {
+               # Not implemented for PostgreSQL
+               return 0;
+       }
 
 } // end DatabasePostgres class