* @param null|bool $ignoreErrors
* @return bool The previous value of the flag.
*/
- public function ignoreErrors( $ignoreErrors = null ) {
+ protected function ignoreErrors( $ignoreErrors = null ) {
return wfSetBit( $this->mFlags, DBO_IGNORE, $ignoreErrors );
}
return false;
}
+ /**
+ * Determines if the given query error was a connection drop
+ * STUB
+ *
+ * @param integer|string $errno
+ * @return bool
+ */
+ public function wasConnectionError( $errno ) {
+ return false;
+ }
+
/**
* Perform a deadlock-prone transaction.
*
* iteration, or false on error, for example if the retry limit was
* reached.
*
- * @return bool
+ * @return mixed
+ * @throws DBQueryError
*/
public function deadlockLoop() {
$args = func_get_args();
$this->begin( __METHOD__ );
+ $retVal = null;
$e = null;
do {
try {