mongos> use test
switched to db test
mongos> sh.enableSharding("test")
mongos> sh.shardCollection("test.test",
{"x":1})
{ "collectionsharded" : "test.test", "ok" : 1 }mongos> db.serverStatus().ops
{
"sharded" :
,
"notSharded" :
}
mongos> db.test.insert(
)
mongos> db.test.find()
mongos> db.serverStatus().ops
{
"sharded" :
,
"notSharded" :
}
mongos>
opsSharded was only used in one place, and that was taken out in: https://github.com/mongodb/mongo/commit/1973153321caf7483d0ff10913e196fa367d78f5#L3L125