forked from mongodb/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apiargs-command-cleanupOrphaned-field.yaml
57 lines (54 loc) · 1.71 KB
/
apiargs-command-cleanupOrphaned-field.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
arg_name: field
description: |
The namespace, i.e. both the database and the collection name, of the
sharded collection for which to clean the orphaned data.
interface: command
name: cleanupOrphaned
operation: cleanupOrphaned
optional: false
position: 1
type: string
---
arg_name: field
description: |
The :term:`shard key` value that determines the lower bound of the
cleanup range. The default value is ``MinKey``.
If the range that contains the specified ``startingFromKey`` value
belongs to a chunk owned by the shard, :dbcommand:`cleanupOrphaned`
continues to examine the next ranges until it finds a range not owned
by the shard. See :ref:`cleanupOrphaned-determine-range` for details.
interface: command
name: startingFromKey
operation: cleanupOrphaned
optional: true
position: 2
type: document
---
arg_name: field
description: |
If ``true``, each delete operation must be replicated to another
secondary before the cleanup operation proceeds further. If
``false``, do not wait for replication. Defaults to ``false``.
Independent of the ``secondaryThrottle`` setting, after the final
delete, :dbcommand:`cleanupOrphaned` waits for all deletes to
replicate to a majority of replica set members before returning.
interface: command
name: secondaryThrottle
operation: cleanupOrphaned
optional: true
position: 3
type: boolean
---
arg_name: field
description: |
A document that expresses the :doc:`write concern
</reference/write-concern>` that the ``secondaryThrottle`` will use to
wait for the secondaries when removing orphaned data.
Any specified ``writeConcern`` implies ``secondaryThrottle``.
interface: command
name: writeConcern
operation: cleanupOrphaned
optional: true
position: 4
type: document
...