@@ -9,8 +9,8 @@ development release series. While 2.3-series releases are currently
99available, these versions of MongoDB are for **testing** *only*, and
1010are *not for production use* under any circumstances.
1111
12- *All* interfaces *and* functionality described in this document are
13- subject to change before the 2.4.0 release.
12+ .. important:: *All* interfaces *and* functionality described in this
13+ document are subject to change before the 2.4.0 release.
1414
1515This document will eventually contain the full release notes for
1616MongoDB 2.4; during the development cycle this document will contain
@@ -113,7 +113,8 @@ resemble:
113113
114114.. code-block:: sh
115115
116- env KRB5_KTNAME=/opt/etc/mongodb.keytab /opt/bin/mongod --auth --dbpath /opt/data/db --logpath /opt/log/mongod.log --fork
116+ env KRB5_KTNAME=/opt/etc/mongodb.keytab \
117+ /opt/bin/mongod --auth --dbpath /opt/data/db --logpath /opt/log/mongod.log --fork
117118
118119Replace the paths as needed for your test deployment.
119120
@@ -124,7 +125,8 @@ associate the current connection with the Kerberos session:
124125
125126.. code-block:: javascript
126127
127- db.getMongo().saslAuthenticate( {mechanism: "GSSAPI", principal: "<username>@<REALM>"} )
128+ db.getMongo().saslAuthenticate( { mechanism: "GSSAPI",
129+ principal: "<username>@<REALM>" } )
128130
129131The value of the ``principal`` field *must* be the same principal that
130132you initialized with ``kinit``. Continue to gain privileges using the
@@ -133,7 +135,10 @@ following:
133135
134136.. code-block:: javascript
135137
136- db.adminCommand( { acquirePrivilege: 1, resource: <dbname>, principal: <principalName>, actions: [ <actionString> ] } )
138+ db.adminCommand( { acquirePrivilege: 1,
139+ resource: <dbname>,
140+ principal: <principalName>,
141+ actions: [ <actionString> ] } )
137142
138143Replace the ``<dbname>`` with the name of the database you want
139144privileges, replace ``<principalName>`` with the Kerberos principal
@@ -193,6 +198,11 @@ and :dbcommand:`eval` is now v8.
193198New Geospatial Indexes with GeoJSON and Improved Spherical Geometry
194199~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
195200
201+ .. note::
202+
203+ In 2.3.2, the index type for Spherical Geospatial Indexes will
204+ become ``2dsphere``
205+
196206The 2.3 series adds a new type of geospatial index that supports
197207improved spherical queries and GeoJSON. Create the index by specifying
198208``s2d`` as the value of the field in the index specification, as
@@ -233,7 +243,10 @@ the following GeoJSON shapes:
233243
234244 .. code-block:: javascript
235245
236- { "type": "Polygon", "coordinates": [ [ 40, 5 ], [ 40, 6 ], [ 41, 6 ], [ 41, 5 ], [ 40, 5 ] ] }
246+ {
247+ "type": "Polygon",
248+ "coordinates": [ [ 40, 5 ], [ 40, 6 ], [ 41, 6 ], [ 41, 5 ], [ 40, 5 ] ]
249+ }
237250
238251To query ``s2d`` indexes, all current geospatial :ref:`query operators
239252<query-selectors-geospatial>` with an additional
@@ -374,7 +387,9 @@ key. Consider the following properties when using a hashed shard key:
374387
375388 .. code-block:: javascript
376389
377- db.adminCommand( { shardCollection: "test.collection", key: { a: "hashed"}, numInitialChunks: 2001 } )
390+ db.adminCommand( { shardCollection: "test.collection",
391+ key: { a: "hashed"},
392+ numInitialChunks: 2001 } )
378393
379394 MongoDB will only pre-split chunks in a collection when sharding
380395 empty collections. MongoDB will not create chunk splits in a
0 commit comments