|
In SERVER-24506, it was decided that initial sync would simply clone the system.views collection. This means that omitting system.views from listCollections would break initial sync.
Per an offline conversation with zach.snow, the tools team will take a different approach and treat system collections specially. Therefore, I'm closing this ticket as won't fix.
|
|
On a recent version of master, I ran a createView, and then listed the collections. I only see system.indexes and system.views, none of the admin collections:
> show collections
|
system.indexes
|
system.views
|
view
|
> db.runCommand( { listCollections: 1 } )
|
{
|
"cursor" : {
|
"id" : NumberLong(0),
|
"ns" : "test.$cmd.listCollections",
|
"firstBatch" : [
|
{
|
"name" : "system.indexes",
|
"type" : "collection",
|
"options" : {
|
|
},
|
"info" : {
|
"readOnly" : false
|
}
|
},
|
{
|
"name" : "system.views",
|
"type" : "collection",
|
"options" : {
|
|
},
|
"info" : {
|
"readOnly" : false
|
}
|
},
|
{
|
"name" : "view",
|
"type" : "view",
|
"options" : {
|
"viewOn" : "coll",
|
"pipeline" : [ ]
|
},
|
"info" : {
|
"readOnly" : true
|
}
|
}
|
]
|
},
|
"ok" : 1
|
}
|
|