summaryrefslogtreecommitdiff
path: root/jstests/dbadmin.js
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2010-03-25 19:21:32 +0100
committerAntonin Kral <a.kral@bobek.cz>2010-03-25 19:21:32 +0100
commit0ca01a91ae0a3562e54c226e7b9512feb2ea83d0 (patch)
tree2b3886e435b0217d6afd63a213b04d32bb4b4f6f /jstests/dbadmin.js
parenta696359b248adef0cc8576fce3f473535e995136 (diff)
downloadmongodb-0ca01a91ae0a3562e54c226e7b9512feb2ea83d0.tar.gz
Imported Upstream version 1.4.0
Diffstat (limited to 'jstests/dbadmin.js')
-rw-r--r--jstests/dbadmin.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/jstests/dbadmin.js b/jstests/dbadmin.js
index c7b7bc8..8d0e7d1 100644
--- a/jstests/dbadmin.js
+++ b/jstests/dbadmin.js
@@ -4,9 +4,10 @@ t.save( { x : 1 } );
before = db._adminCommand( "serverStatus" )
if ( before.mem.supported ){
- db._adminCommand( "closeAllDatabases" );
+ cmdres = db._adminCommand( "closeAllDatabases" );
after = db._adminCommand( "serverStatus" );
- assert( before.mem.mapped > after.mem.mapped , "closeAllDatabases does something before:" + tojson( before ) + " after:" + tojson( after ) );
+ assert( before.mem.mapped > after.mem.mapped , "closeAllDatabases does something before:" + tojson( before.mem ) + " after:" + tojson( after.mem ) + " cmd res:" + tojson( cmdres ) );
+ print( before.mem.mapped + " -->> " + after.mem.mapped );
}
else {
print( "can't test serverStatus on this machine" );
@@ -17,6 +18,4 @@ t.save( { x : 1 } );
res = db._adminCommand( "listDatabases" );
assert( res.databases.length > 0 , "listDatabases 1" );
-print( "BEFORE: " + tojson( before ) );
-print( "AFTER : " + tojson( after ) );
// TODO: add more tests here