Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
Description
----------------------------
Original Description
In the documentation here we have the following example:
convertShardKeyToHashed( { _id: ObjectId("5b2be413c06d924ab26ff9ca") } ) |
That is incorrect and will produce a different hash value from the one that gets produced by the server for a hashed index.
As pointed out by kevin.pulo on SERVER-32889, the correct usage would be:
convertShardKeyToHashed( ObjectId("5b2be413c06d924ab26ff9ca") ) |
----------------------------
Description
Scope of changes (files that need work and how much)
Impact to other docs outside of this product
MVP (work and date?)
Resources (e.g. Scope Docs, Invision)
Attachments
Issue Links
- related to
-
SERVER-32889 Mongo shell injection function for hashing shard key
-
- Closed
-