diff --git a/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php b/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php index 958c6f3..d584bc1 100644 --- a/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php +++ b/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php @@ -130,16 +130,6 @@ public function serialize() { /** * {@inheritdoc} */ - public function serialize() { - // Cleanup the connection, much like __destruct() does it as well. - if ($this->needsCleanup) { - $this->nextIdDelete(); - } - $this->needsCleanup = FALSE; - - return parent::serialize(); - } - public function __destruct() { if ($this->needsCleanup) { $this->nextIdDelete();