| Steps To Reproduce: |
Start mongod without --notablescan and run the attached script, the output is below:
MongoDB shell version: 2.6.0
|
connecting to: test
|
{ "_id" : ObjectId("53453ea01a5e1a8ac3c64a8d"), "a" : 1 }
|
{ "_id" : ObjectId("53453ea01a5e1a8ac3c64a8e"), "a" : 2 }
|
{ "_id" : ObjectId("53453ea01a5e1a8ac3c64a8f"), "a" : 3 }
|
{ "_id" : ObjectId("53453ea01a5e1a8ac3c64a90"), "b" : 1 }
|
{ "_id" : ObjectId("53453ea01a5e1a8ac3c64a91"), "b" : 2 }
|
{ "_id" : ObjectId("53453ea01a5e1a8ac3c64a92"), "b" : 3 }
|
Start mongod with --notablescan and run the attached script, the output is below:
MongoDB shell version: 2.6.0
|
connecting to: test
|
{ "_id" : ObjectId("53453eb5677ff00bb2c52786"), "a" : 1 }
|
{ "_id" : ObjectId("53453eb5677ff00bb2c52787"), "a" : 2 }
|
{ "_id" : ObjectId("53453eb5677ff00bb2c52788"), "a" : 3 }
|
2014-04-09T13:36:05.429+0100 error: {
|
"$err" : "Unable to execute query: error processing query: ns=test.exist
|
swithoutindex limit=0 skip=0\nTree: b exists\nSort: {}\nProj: {}\n No query solu
|
tions",
|
"code" : 17007
|
} at src/mongo/shell/query.js:131
|
|