X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdb%2FDBConnRef.php;h=1019e729ea16697619a4484fd3ea8a1b9cd74087;hb=5f657c522bc583f63ed2bdb8ca30956c0e68e22a;hp=790a073d7f0dd634826afbbe6ec5fc7130b3f0bb;hpb=d1cb2084b71fa31012697575d8528a02e10a92bc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/db/DBConnRef.php b/includes/db/DBConnRef.php index 790a073d7f..1019e729ea 100644 --- a/includes/db/DBConnRef.php +++ b/includes/db/DBConnRef.php @@ -103,7 +103,7 @@ class DBConnRef implements IDatabase { return $this->__call( __FUNCTION__, func_get_args() ); } - public function pendingWriteQueryDuration() { + public function pendingWriteQueryDuration( $type = self::ESTIMATE_TOTAL ) { return $this->__call( __FUNCTION__, func_get_args() ); } @@ -441,6 +441,10 @@ class DBConnRef implements IDatabase { return $this->__call( __FUNCTION__, func_get_args() ); } + public function setTransactionListener( $name, callable $callback = null ) { + return $this->__call( __FUNCTION__, func_get_args() ); + } + public function startAtomic( $fname = __METHOD__ ) { return $this->__call( __FUNCTION__, func_get_args() ); } @@ -477,8 +481,10 @@ class DBConnRef implements IDatabase { return $this->__call( __FUNCTION__, func_get_args() ); } - public function ping() { - return $this->__call( __FUNCTION__, func_get_args() ); + public function ping( &$rtt = null ) { + return func_num_args() + ? $this->__call( __FUNCTION__, [ &$rtt ] ) + : $this->__call( __FUNCTION__, [] ); // method cares about null vs missing } public function getLag() {