diff --git a/src/Symfony/Component/Lock/Store/MongoDbStore.php b/src/Symfony/Component/Lock/Store/MongoDbStore.php index acbb96eff279f..92b4f5b84b822 100644 --- a/src/Symfony/Component/Lock/Store/MongoDbStore.php +++ b/src/Symfony/Component/Lock/Store/MongoDbStore.php @@ -130,7 +130,11 @@ public function __construct($mongo, array $options = [], float $initialTtl = 300 } /** - * Extract default database and collection from given connection uri and remove collection querystring. + * Extract default database and collection from given connection URI and remove collection querystring. + * + * Non-standard parameters are removed from the URI to improve libmongoc's re-use of connections. + * + * @see https://www.php.net/manual/en/mongodb.connection-handling.php */ private function skimUri(string $uri): string {