From 79fee701ff79222aa6cc39c1c5850b5682d7b24b Mon Sep 17 00:00:00 2001 From: Joe Bennett Date: Mon, 22 Jun 2020 11:32:28 +1000 Subject: [PATCH] #37180 improved skimUri documentation --- src/Symfony/Component/Lock/Store/MongoDbStore.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 {