Merge "Deprecate several public properties on the block classes"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 29 Jul 2019 21:21:39 +0000 (21:21 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 29 Jul 2019 21:21:39 +0000 (21:21 +0000)
includes/diff/SlotDiffRenderer.php
includes/libs/rdbms/database/DatabaseSqlite.php

index b30607f..969e0ba 100644 (file)
@@ -25,13 +25,13 @@ use Wikimedia\Assert\Assert;
 /**
  * Renders a diff for a single slot (that is, a diff between two content objects).
  *
- * Callers should obtain this class by invoking ContentHandler::getSlotDiffRendererClass
+ * Callers should obtain instances of this class by invoking ContentHandler::getSlotDiffRenderer
  * on the content handler of the new content object (ie. the one shown on the right side
  * of the diff), or of the old one if the new one does not exist.
  *
  * The default implementation just does a text diff on the native text representation.
  * Content handler extensions can subclass this to provide a more appropriate diff method by
- * overriding ContentHandler::getSlotDiffRendererClass. Other extensions that want to interfere
+ * overriding ContentHandler::getSlotDiffRendererInternal. Other extensions that want to interfere
  * with diff generation in some way can use the GetSlotDiffRenderer hook.
  *
  * @ingroup DifferenceEngine
index 83567a5..cb1b842 100644 (file)
@@ -152,8 +152,11 @@ class DatabaseSqlite extends Database {
                if ( $this->getFlag( self::DBO_PERSISTENT ) ) {
                        // Persistent connections can avoid some schema index reading overhead.
                        // On the other hand, they can cause horrible contention with DBO_TRX.
-                       if ( $this->getFlag( self::DBO_TRX ) ) {
-                               $this->connLogger->warning( __METHOD__ . ": DBO_PERSISTENT mixed with DBO_TRX" );
+                       if ( $this->getFlag( self::DBO_TRX ) || $this->getFlag( self::DBO_DEFAULT ) ) {
+                               $this->connLogger->warning(
+                                       __METHOD__ . ": ignoring DBO_PERSISTENT due to DBO_TRX or DBO_DEFAULT",
+                                       $this->getLogContext()
+                               );
                        } else {
                                $attributes[PDO::ATTR_PERSISTENT] = true;
                        }