File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ Sessions
1515
1616Version 3.6 of the MongoDB server introduces the concept of logical sessions for clients.
1717A session is an abstract concept that represents a set of sequential operations executed
18- by an application that are related in some way. A session object can be create via a ``Mongo::Client``
18+ by an application that are related in some way. A session object can be created via a ``Mongo::Client``
1919and passed to operation methods that should be executed in the context of that session.
2020
21- Please note that sessions are not thread safe. They can only be used by one thread at a time.
21+ Please note that session objects are not thread safe. They must only be used by one thread at a time.
2222
2323Creating a session from a ``Mongo::Client``
2424-------------------------------------------
@@ -38,8 +38,8 @@ session options.
3838An error will be thrown if the driver is connected to a deployment that does not support sessions and the
3939``start_session`` method is called.
4040
41- Note that server sessions are discarded server-side if not used for a certain period of time. That said,
42- be aware that if the application calls ``#start_session`` on a client and waits more than 1 minute to use
41+ Note that server sessions are discarded server-side if not used for a certain period of time.
42+ Be aware that if the application calls ``#start_session`` on a client and waits more than 1 minute to use
4343the session, it risks getting errors due to the session going stale before it is used.
4444
4545
You can’t perform that action at this time.
0 commit comments