@@ -72,7 +72,7 @@ system are available for use in MongoDB:
72
72
instances and :term:`replica sets <replica set>`.
73
73
74
74
Initial SASL/Kerberos Support
75
- `````````````````````````````
75
+ ``````````````````````````````
76
76
77
77
Development work on this functionality is ongoing, and additional
78
78
related functionality is forthcoming. To use Kerberos with MongoDB as
@@ -125,7 +125,7 @@ associate the current connection with the Kerberos session:
125
125
126
126
.. code-block:: javascript
127
127
128
- db.getMongo().saslAuthenticate( { mechanism: "GSSAPI",
128
+ db.getMongo().saslAuthenticate( { mechanism: "GSSAPI",
129
129
principal: "<username>@<REALM>" } )
130
130
131
131
The value of the ``principal`` field *must* be the same principal that
@@ -135,9 +135,9 @@ following:
135
135
136
136
.. code-block:: javascript
137
137
138
- db.adminCommand( { acquirePrivilege: 1,
139
- resource: <dbname>,
140
- principal: <principalName>,
138
+ db.adminCommand( { acquirePrivilege: 1,
139
+ resource: <dbname>,
140
+ principal: <principalName>,
141
141
actions: [ <actionString> ] } )
142
142
143
143
Replace the ``<dbname>`` with the name of the database you want
@@ -198,7 +198,7 @@ and :dbcommand:`eval` is now v8.
198
198
New Geospatial Indexes with GeoJSON and Improved Spherical Geometry
199
199
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
200
200
201
- .. note::
201
+ .. note::
202
202
203
203
In 2.3.2, the index type for Spherical Geospatial Indexes will
204
204
become ``2dsphere``
@@ -244,8 +244,8 @@ the following GeoJSON shapes:
244
244
.. code-block:: javascript
245
245
246
246
{
247
- "type": "Polygon",
248
- "coordinates": [ [ 40, 5 ], [ 40, 6 ], [ 41, 6 ], [ 41, 5 ], [ 40, 5 ] ]
247
+ "type": "Polygon",
248
+ "coordinates": [ [ 40, 5 ], [ 40, 6 ], [ 41, 6 ], [ 41, 5 ], [ 40, 5 ] ]
249
249
}
250
250
251
251
To query ``s2d`` indexes, all current geospatial :ref:`query operators
@@ -375,7 +375,7 @@ key. Consider the following properties when using a hashed shard key:
375
375
the appropriate index.
376
376
377
377
- The :program:`mongos` will route all equality queries to a specific
378
- shard or set of shards; however, the :program:`mongos` must route
378
+ shard or set of shards; however, the :program:`mongos` must route
379
379
range queries to all shards.
380
380
381
381
- When using a hashed shard key on a new collection, MongoDB
@@ -387,10 +387,10 @@ key. Consider the following properties when using a hashed shard key:
387
387
388
388
.. code-block:: javascript
389
389
390
- db.adminCommand( { shardCollection: "test.collection",
391
- key: { a: "hashed"},
390
+ db.adminCommand( { shardCollection: "test.collection",
391
+ key: { a: "hashed"},
392
392
numInitialChunks: 2001 } )
393
-
393
+
394
394
MongoDB will only pre-split chunks in a collection when sharding
395
395
empty collections. MongoDB will not create chunk splits in a
396
396
collection sharding collections that have data.
0 commit comments