Skip to content

Commit b76c685

Browse files
author
Ed Costello
committed
DOCS-533 document blocking read, write, or global operations
1 parent 6e97ac9 commit b76c685

File tree

7 files changed

+226
-6
lines changed

7 files changed

+226
-6
lines changed

draft/commands-locks.txt

Lines changed: 217 additions & 0 deletions
Large diffs are not rendered by default.

source/reference/command/convertToCapped.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ convertToCapped
2626
indexes on this collection you will need to create these indexes
2727
after the conversion is complete.
2828

29-
.. include:: /includes/warning-blocking-operation.rst
29+
.. include:: /includes/warning-blocking-database.rst

source/reference/command/copydbgetnonce.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ copydbgetnonce (internal)
99
Client libraries use :dbcommand:`copydbgetnonce` to get a one-time
1010
password for use with the :dbcommand:`copydb` command.
1111

12-
.. include:: /includes/warning-blocking-operation.rst
12+
.. include:: /includes/warning-blocking-database.rst
1313

1414
.. write-lock, admin-only

source/reference/command/godinsert.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ godinsert (internal)
88

99
:dbcommand:`godinsert` is an internal command for testing purposes only.
1010

11-
.. include:: /includes/warning-blocking-operation.rst
11+
.. include:: /includes/warning-blocking-database.rst
1212

1313
.. write-lock, slave-ok

source/reference/command/recvChunkStart.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ recvChunkStart (internal)
99
:dbcommand:`_recvChunkStart` is an internal command. Do not call
1010
directly.
1111

12-
.. include:: /includes/warning-blocking-operation.rst
12+
.. include:: /includes/warning-blocking-database.rst
1313

1414
.. admin-only, write-lock

source/reference/command/resync.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ resync
1111
that this command is relevant to master-slave replication only. It does
1212
no apply to replica sets.
1313

14-
.. include:: /includes/warning-blocking-operation.rst
14+
.. include:: /includes/warning-blocking-database.rst
1515

1616
.. write-lock, slave-ok, admin-only.

source/reference/command/sleep.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ sleep (internal)
99
:dbcommand:`sleep` is an internal command for testing purposes. The
1010
:dbcommand:`sleep` command forces the database to block all operations. It
1111
takes the following options:
12+
13+
:param Boolean w: If true, obtain a global write lock.
14+
:param integer secs: Specifies the number of seconds to sleep.
1215

1316
.. code-block:: javascript
1417

@@ -19,5 +22,5 @@ sleep (internal)
1922
seconds. Without arguments, :dbcommand:`sleep`, causes a "read
2023
lock" for 100 seconds.
2124

22-
.. include:: /includes/warning-blocking-operation.rst
25+
.. include:: /includes/warning-blocking-global.rst
2326

0 commit comments

Comments
 (0)