Skip to content

Commit 673c95f

Browse files
author
Sam Kleinman
committed
DOCS-711 specified corrections
1 parent 40ffeb4 commit 673c95f

16 files changed

+108
-59
lines changed

source/includes/warning-blocking-database.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.

source/reference/command/clean.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ clean (internal)
77
.. dbcommand:: clean
88

99
:dbcommand:`clean` is an internal command.
10-
11-
.. include:: /includes/warning-blocking-database.rst
10+
11+
.. warning::
12+
13+
This command obtains a write lock on the affected database and will
14+
block other operations until it has completed.
1215

1316
.. write-lock, slave-ok

source/reference/command/clone.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434

3535
See :dbcommand:`copydb` for similar functionality.
3636

37-
.. include:: /includes/warning-blocking-database.rst
37+
.. warning::
38+
39+
This command obtains an intermittent write-lock on the
40+
destination server, that can block other operations until it
41+
completes.
3842

3943
.. intermittent write-lock on destination server.

source/reference/command/collMod.txt

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,23 @@ collMod
3131
collection. By setting :collflag:`usePowerOf2Sizes`, you ensure
3232
that MongoDB will allocate space for documents in sizes that
3333
are powers of 2 (e.g. 4, 8, 16, 32, 64, 128, 256, 512...8388608).
34-
With this option MongoDB will be able to more effectively reuse
35-
space.
36-
34+
With this option MongoDB will be able to more effectively reuse
35+
space.
36+
3737
:collflag:`usePowerOf2Sizes` is useful for collections where you
3838
will be inserting and deleting large numbers of documents to
3939
ensure that MongoDB will effectively use space on disk.
40-
41-
.. note::
42-
43-
In |release|, the :collflag:`usePowerOf2Sizes` is
44-
subject to a limitation where MongoDB ineffectively reuses
45-
spaces larger than 8 megabytes. See, :issue:`SERVER-7238` for
46-
more information.
47-
48-
.. include:: /includes/warning-blocking-database.rst
49-
40+
41+
.. note::
42+
.. versionchanged:: 2.2.1
43+
If you're using :collflag:`usePowerOf2Sizes`, ensure
44+
you use at least 2.2.1 to avoid the issue described in
45+
:issue:`SERVER-7238`.
46+
47+
:collflag:`usePowerOf2Sizes` only affects subsequent
48+
allocations cased by document insertion or record relocation
49+
as a result of document growth, and *does not* affect
50+
existing allocations.
51+
52+
This command obtains a write lock on the affected database
53+
and will block other operations until it has completed.

source/reference/command/copydbgetnonce.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ copydbgetnonce (internal)
88

99
Client libraries use :dbcommand:`copydbgetnonce` to get a one-time
1010
password for use with the :dbcommand:`copydb` command.
11-
12-
.. include:: /includes/warning-blocking-database.rst
11+
12+
.. note::
13+
14+
This command obtains a write lock on the affected database and
15+
will block other operations until it has completed; however, the
16+
write lock for this operation is short lived.
1317

1418
.. write-lock, admin-only

source/reference/command/create.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,9 @@ create
4242
The :method:`db.createCollection()` provides a wrapper function that
4343
provides access to this functionality.
4444

45-
.. include:: /includes/warning-blocking-database.rst
45+
.. note::
46+
47+
This command obtains a write lock on the affected database and
48+
will block other operations until it has completed. The write
49+
lock for this operation is typically short lived; however,
50+
allocations for large capped collections may take longer.

source/reference/command/diagLogging.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ diagLogging (internal)
77
.. dbcommand:: diagLogging
88

99
:dbcommand:`diagLogging` is an internal command.
10-
11-
.. include:: /includes/warning-blocking-database.rst
10+
11+
.. warning::
12+
13+
This command obtains a write lock on the affected database and
14+
will block other operations until it has completed.
1215

1316
.. write-lock, slave-ok,

source/reference/command/drop.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ drop
2323
Note that this command also removes any indexes associated with the
2424
dropped collection.
2525

26-
.. include:: /includes/warning-blocking-database.rst
26+
.. warning::
27+
28+
This command obtains a write lock on the affected database and
29+
will block other operations until it has completed.

source/reference/command/dropIndexes.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dropIndexes
66

77
.. dbcommand:: dropIndexes
88

9-
The :dbcommand:`dropIndexes` command drops one or all indexes from
9+
The :dbcommand:`dropIndexes` command drops one or all indexes from
1010
the current collection.
1111
To drop all indexes, issue the command like so:
1212

@@ -28,4 +28,7 @@ dropIndexes
2828

2929
db.collection.dropIndex("age_1");
3030

31-
.. include:: /includes/warning-blocking-database.rst
31+
.. warning::
32+
33+
This command obtains a write lock on the affected database and
34+
will block other operations until it has completed.

source/reference/command/emptyCapped.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ emptycapped
1616
This command removes all records from the capped collection named
1717
``events``.
1818

19-
.. include:: /includes/warning-blocking-database.rst
19+
.. warning::
20+
21+
This command obtains a write lock on the affected database and
22+
will block other operations until it has completed.

0 commit comments

Comments
 (0)