[DOCS-1059] usage for shell function getShardVersion() incorrect Created: 28/Jan/13  Updated: 28/Jan/13  Resolved: 28/Jan/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: J Rassi Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 11 years, 3 weeks, 2 days ago

 Description   

Is documented as getShardVersion. Needs to be renamed to db.collection.getShardVersion.

mongos> getShardVersion()
Mon Jan 28 17:33:50.613 javascript execution failed (shell):1 ReferenceError: getShardVersion is not defined
getShardVersion()
^
 
mongos> db.bar.getShardVersion()
{
	"version" : {
		"t" : 1000,
		"i" : 0
	},
	"versionEpoch" : ObjectId("5106fcca55afa4574cbb9ab3"),
	"ok" : 1
}
mongos> 



 Comments   
Comment by auto [ 28/Jan/13 ]

Author:

{u'date': u'2013-01-28T22:50:12Z', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}

Message: DOCS-1059: renaming getShardVersion documentation
Branch: master
https://github.com/mongodb/docs/commit/bbda45da05bc38d027db1e2ca957bdf1c3896914

Generated at Thu Feb 08 07:40:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.