|
| 1 | +ref: mongos-operations-wc-move-primary |
| 2 | +content: | |
| 3 | + |
| 4 | + :binary:`~bin.mongos` uses :writeconcern:`"majority"` for |
| 5 | + :dbcommand:`movePrimary`. |
| 6 | +
|
| 7 | +--- |
| 8 | +ref: mongos-operations-wc-drop |
| 9 | +content: | |
| 10 | +
|
| 11 | + When issued on a sharded cluster, :binary:`~bin.mongos` converts the |
| 12 | + :doc:`write concern </reference/write-concern>` of the |
| 13 | + :dbcommand:`drop` command and its helper |
| 14 | + :method:`db.collection.drop()` to :writeconcern:`"majority"`. |
| 15 | +--- |
| 16 | +ref: mongos-operations-wc-rename-collection |
| 17 | +content: | |
| 18 | +
|
| 19 | + When issued on a sharded cluster, :binary:`~bin.mongos` converts the |
| 20 | + :doc:`write concern </reference/write-concern>` of the |
| 21 | + :dbcommand:`renameCollection` command and its helper |
| 22 | + :method:`db.collection.renameCollection()` to |
| 23 | + :writeconcern:`"majority"`. |
| 24 | +
|
| 25 | + .. note:: |
| 26 | +
|
| 27 | + You cannot rename a sharded collection. You can however rename an |
| 28 | + unsharded collection in a sharded cluster. |
| 29 | +
|
| 30 | +--- |
| 31 | +ref: mongos-operations-wc-create |
| 32 | +content: | |
| 33 | +
|
| 34 | + When issued on a sharded cluster, :binary:`~bin.mongos` converts the |
| 35 | + :doc:`write concern </reference/write-concern>` of the |
| 36 | + :dbcommand:`create` command and its helper |
| 37 | + :method:`db.createCollection()` to :writeconcern:`"majority"`. |
| 38 | +--- |
| 39 | +ref: mongos-operations-wc-drop-database |
| 40 | +content: | |
| 41 | +
|
| 42 | + When issued on a sharded cluster, MongoDB converts the :doc:`write |
| 43 | + concern </reference/write-concern>` of the :dbcommand:`dropDatabase` |
| 44 | + command to :writeconcern:`"majority"`. |
| 45 | +
|
| 46 | +--- |
| 47 | +ref: mongos-operations-wc-shard-collection |
| 48 | +content: | |
| 49 | +
|
| 50 | + :binary:`~bin.mongos` uses :writeconcern:`"majority"` for the |
| 51 | + :doc:`write concern </reference/write-concern>` of the |
| 52 | + :dbcommand:`shardCollection` command and its helper |
| 53 | + :method:`sh.shardCollection()`. |
| 54 | +
|
| 55 | +--- |
| 56 | +ref: mongos-operations-wc-enable-sharding |
| 57 | +content: | |
| 58 | +
|
| 59 | + :binary:`~bin.mongos` uses |
| 60 | + :writeconcern:`"majority"` for the |
| 61 | + :dbcommand:`enableSharding` command and its helper |
| 62 | + :method:`sh.enableSharding()`. |
| 63 | +--- |
| 64 | +ref: mongos-operations-wc-add-shard |
| 65 | +content: | |
| 66 | +
|
| 67 | + :binary:`~bin.mongos` uses |
| 68 | + :writeconcern:`"majority"` for the |
| 69 | + :dbcommand:`addShard` command and its helper |
| 70 | + :method:`sh.addShard()`. |
| 71 | +
|
| 72 | +--- |
| 73 | +ref: mongos-operations-wc-remove-shard |
| 74 | +content: | |
| 75 | +
|
| 76 | + :binary:`~bin.mongos` converts the |
| 77 | + :doc:`write concern </reference/write-concern>` of the |
| 78 | + :dbcommand:`removeShard` command to :writeconcern:`"majority"`. |
| 79 | +
|
| 80 | +--- |
| 81 | +ref: mongos-operations-wc-fcv |
| 82 | +content: | |
| 83 | + When issued on a sharded cluster, :binary:`~bin.mongos` converts the |
| 84 | + :doc:`write concern </reference/write-concern>` of the |
| 85 | + :dbcommand:`setFeatureCompatibilityVersion` command to :writeconcern:`"majority"`. |
| 86 | +--- |
| 87 | +ref: mongos-operations-wc |
| 88 | +content: | |
| 89 | + |
| 90 | + :binary:`~bin.mongos` uses :writeconcern:`"majority"` for the |
| 91 | + following operations that affect the sharded cluster metadata: |
| 92 | +
|
| 93 | + .. list-table:: |
| 94 | + :header-rows: 1 |
| 95 | +
|
| 96 | + * - Command |
| 97 | + - Method |
| 98 | + - Note |
| 99 | +
|
| 100 | + * - :dbcommand:`addShard` |
| 101 | + - :method:`sh.addShard()` |
| 102 | + - |
| 103 | +
|
| 104 | + * - :dbcommand:`create` |
| 105 | + - :method:`db.createCollection()` |
| 106 | + - |
| 107 | +
|
| 108 | + * - :dbcommand:`drop` |
| 109 | + - :method:`db.collection.drop()` |
| 110 | + - |
| 111 | +
|
| 112 | + * - :dbcommand:`dropDatabase` |
| 113 | +
|
| 114 | + - :method:`db.dropDatabase()` |
| 115 | +
|
| 116 | + - Changed in MongoDB 3.6 |
| 117 | +
|
| 118 | + * - :dbcommand:`enableSharding` |
| 119 | + - :method:`sh.enableSharding()` |
| 120 | + - |
| 121 | +
|
| 122 | + * - :dbcommand:`movePrimary` |
| 123 | + - |
| 124 | + - |
| 125 | +
|
| 126 | + * - :dbcommand:`renameCollection` |
| 127 | + - :method:`db.collection.renameCollection()` |
| 128 | + - |
| 129 | +
|
| 130 | + * - :dbcommand:`shardCollection` |
| 131 | + - :method:`sh.shardCollection()` |
| 132 | + - |
| 133 | +
|
| 134 | + * - :dbcommand:`removeShard` |
| 135 | + - |
| 136 | + - |
| 137 | +
|
| 138 | + * - :dbcommand:`setFeatureCompatibilityVersion` |
| 139 | + - |
| 140 | + - |
| 141 | +... |
| 142 | + |
0 commit comments