From 0f1a5ff0563a03f1003141bc12f1222e25848d81 Mon Sep 17 00:00:00 2001 From: Joe Bennett Date: Thu, 22 Jul 2021 15:31:13 +1000 Subject: [PATCH] #42229 update phpdoc to recommend createIndex over ensureIndex --- session/database.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session/database.rst b/session/database.rst index b9ddfd2e9fd..56cd9e27384 100644 --- a/session/database.rst +++ b/session/database.rst @@ -532,7 +532,7 @@ performance. Run this from the `MongoDB shell`_: .. code-block:: javascript use session_db - db.session.ensureIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } ) + db.session.createIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } ) Configuring the Session Field Names ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~