Skip to content

Commit 7a42437

Browse files
devkevkay-kim
authored andcommitted
Clarify what killing a session means.
1 parent 6d5cae4 commit 7a42437

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

source/includes/note-killSessions.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. note::
2+
3+
Killing a session kills any in-progress operations in the
4+
session, and closes any open cursors associated with these
5+
operations. The killed session may still be listed as a
6+
current session, and future operations may use the killed
7+
session.

source/reference/command/killAllSessions.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Definition
2020
The :dbcommand:`killAllSessions` command kills all sessions for the
2121
specified users.
2222

23+
.. include:: /includes/note-killSessions.rst
24+
2325
.. code-block:: javascript
2426

2527
{ killAllSessions: [ { user: <user>, db: <dbname> }, ... ] }

source/reference/command/killAllSessionsByPattern.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Definition
2020
The :dbcommand:`killAllSessionsByPattern` command kills all sessions
2121
that match any of the specified patterns:
2222

23+
.. include:: /includes/note-killSessions.rst
24+
2325
.. code-block:: javascript
2426

2527
{ killAllSessionsByPattern: [ <pattern>, ... ] }

source/reference/command/killSessions.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ Definition
2121
If access control is enabled, the command only kills the sessions
2222
owned by the user.
2323

24-
.. note::
25-
26-
Killing a session also kills any in-progress operations in the
27-
session and closes any open cursors associated with these
28-
operations.
24+
.. include:: /includes/note-killSessions.rst
2925

3026
:dbcommand:`killSessions` has the following syntax:
3127

0 commit comments

Comments
 (0)