Clean up some IDatabase comments
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 9 Aug 2016 23:45:37 +0000 (16:45 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 9 Aug 2016 23:45:37 +0000 (16:45 -0700)
Change-Id: Ia4b344a412e78185b6b2fe584540a358c35651b8

includes/db/DatabaseMysqlBase.php
includes/db/IDatabase.php

index ee84224..798815d 100644 (file)
@@ -1186,12 +1186,6 @@ abstract class DatabaseMysqlBase extends Database {
                return $this->lastErrno() == 1205;
        }
 
-       /**
-        * Determines if the last query error was something that should be dealt
-        * with by pinging the connection and reissuing the query
-        *
-        * @return bool
-        */
        function wasErrorReissuable() {
                return $this->lastErrno() == 2013 || $this->lastErrno() == 2006;
        }
index 9dcbd7f..43592e2 100644 (file)
@@ -1156,7 +1156,6 @@ interface IDatabase {
 
        /**
         * Determines how long the server has been up
-        * STUB
         *
         * @return int
         */
@@ -1164,7 +1163,6 @@ interface IDatabase {
 
        /**
         * Determines if the last failure was due to a deadlock
-        * STUB
         *
         * @return bool
         */
@@ -1172,16 +1170,14 @@ interface IDatabase {
 
        /**
         * Determines if the last failure was due to a lock timeout
-        * STUB
         *
         * @return bool
         */
        public function wasLockTimeout();
 
        /**
-        * Determines if the last query error was something that should be dealt
-        * with by pinging the connection and reissuing the query.
-        * STUB
+        * Determines if the last query error was due to a dropped connection and should
+        * be dealt with by pinging the connection and reissuing the query.
         *
         * @return bool
         */
@@ -1189,7 +1185,6 @@ interface IDatabase {
 
        /**
         * Determines if the last failure was due to the database being read-only.
-        * STUB
         *
         * @return bool
         */