X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fdb%2FIDatabase.php;h=8b1c3dff224c24a6c4ce6866ced6cd54a824f98a;hb=d7bad7704f67dc887a77e4de7581931b7915d04b;hp=78558612813748115c8a2fdd7da7c61a1fcd7fc8;hpb=9fd930f74592234f95f83c0c831339e5b49553e7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/db/IDatabase.php b/includes/db/IDatabase.php index 7855861281..8b1c3dff22 100644 --- a/includes/db/IDatabase.php +++ b/includes/db/IDatabase.php @@ -1183,14 +1183,13 @@ interface IDatabase { public function wasReadOnlyError(); /** - * Wait for the slave to catch up to a given master position. + * Wait for the slave to catch up to a given master position * * @param DBMasterPos $pos - * @param int $timeout The maximum number of seconds to wait for - * synchronisation - * @return int Zero if the slave was past that position already, + * @param int $timeout The maximum number of seconds to wait for synchronisation + * @return int|null Zero if the slave was past that position already, * greater than zero if we waited for some period of time, less than - * zero if we timed out. + * zero if it timed out, and null on error */ public function masterPosWait( DBMasterPos $pos, $timeout );