blob: 8de16c7131d245291e58ef49ade3ecb6db481ba0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
t = db.touch1;
t.drop();
t.insert( { x : 1 } );
t.ensureIndex( { x : 1 } );
res = t.runCommand( "touch" );
assert( !res.ok, tojson( res ) );
res = t.runCommand( "touch", { data : true, index : true } );
assert.eq( 1, res.data.numRanges, tojson( res ) );
assert.eq( 1, res.ok, tojson( res ) );
|