Skip to content

Commit 9d142d4

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: #42229 update phpdoc to recommend createIndex over ensureIndex
2 parents 96f2733 + dad83ee commit 9d142d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

session/database.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ performance. Run this from the `MongoDB shell`_:
549549
.. code-block:: javascript
550550
551551
use session_db
552-
db.session.ensureIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } )
552+
db.session.createIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } )
553553
554554
Configuring the Session Field Names
555555
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)