0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00
mongodb/jstests/evalb.js
Eliot Horowitz e4e846e150 test that breaks the build
shows problem with recursive mutex and DBDirectClient
2009-12-06 01:09:09 -05:00

15 lines
260 B
JavaScript

t = db.evalb;
t.drop();
t.save( { x : 3 } );
assert.eq( 3, db.eval( function(){ return db.evalb.findOne().x; } ) , "A" );
db.setProfilingLevel( 2 );
assert.eq( 3, db.eval( function(){ return db.evalb.findOne().x; } ) , "B" );
db.setProfilingLevel( 0 );