blob: 979a6ddc6dc8496cad0f4e98eadf22799226a0d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Cannot implicitly shard accessed collections because unsupported use of sharded collection
// from db.eval.
// @tags: [assumes_unsharded_collection]
t = db.eval_nolock;
t.drop();
for (i = 0; i < 10; i++)
t.insert({_id: i});
res = db.runCommand({
eval: function() {
db.eval_nolock.insert({_id: 123});
return db.eval_nolock.count();
},
nolock: true
});
assert.eq(11, res.retval, "A");
|