(bug 10104) Provide stub "getLag()" function for DatabaseOracle and DatabasePostgres

This commit is contained in:
Rob Church 2007-06-04 21:43:02 +00:00
parent 2bbe34ff54
commit 73fda35eef
3 changed files with 21 additions and 2 deletions

View 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 ==

View 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

View 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