diff options
author | Scott Hernandez <scotthernandez@gmail.com> | 2014-12-22 17:32:27 -0500 |
---|---|---|
committer | Scott Hernandez <scotthernandez@gmail.com> | 2015-01-02 14:21:08 -0500 |
commit | 8384c878b542352ba88ecade1e675b8412f2655f (patch) | |
tree | a9b40ee6ec4fb837b99a2d3a9e37b6ece12a650c /jstests/mmap_v1 | |
parent | 8b37507dd51cdf058377a24ca0171e7fae6f2c6b (diff) | |
download | mongo-8384c878b542352ba88ecade1e675b8412f2655f.tar.gz |
SERVER-16502: make getCollection const and not require an OpContext
Diffstat (limited to 'jstests/mmap_v1')
-rw-r--r-- | jstests/mmap_v1/indexi.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/jstests/mmap_v1/indexi.js b/jstests/mmap_v1/indexi.js index 06f185fb689..e23d70e7b6d 100644 --- a/jstests/mmap_v1/indexi.js +++ b/jstests/mmap_v1/indexi.js @@ -1,4 +1,4 @@ -// Test that client cannot access index namespaces SERVER-4276. +// Test that client cannot access index namespaces. t = db.jstests_indexi; t.drop(); @@ -7,7 +7,6 @@ idx = db.jstests_indexi.$_id_; // Test that accessing the index namespace fails. function checkFailingOperations() { - assert.throws(function() { idx.find().itcount(); }); assert.writeError( idx.insert({ x: 1 }) ); assert.writeError( idx.update({ x: 1 }, { x: 2 }) ); assert.writeError( idx.remove({ x: 1 }) ); @@ -16,8 +15,7 @@ function checkFailingOperations() { } // Check with base collection not present. -// TODO: SERVER-4276 -//checkFailingOperations(); +checkFailingOperations(); t.save({}); // Check with base collection present. |