diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-03-30 16:06:38 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-03-30 16:12:27 -0400 |
commit | aa161911ee890e16ba42a6d9ef4134019ccc15a6 (patch) | |
tree | c11a165d96a59357c5ef8ab7adf3af0f63d0df78 /jstests | |
parent | 8f5c537d6e51eeee5aa8e5e6bafe50cbb1ec7560 (diff) | |
download | mongo-aa161911ee890e16ba42a6d9ef4134019ccc15a6.tar.gz |
teste needed getLastError to be more robust
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/sharding/remove1.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/sharding/remove1.js b/jstests/sharding/remove1.js index da375d7f1c9..db9fe5bcdfc 100644 --- a/jstests/sharding/remove1.js +++ b/jstests/sharding/remove1.js @@ -4,6 +4,7 @@ assert.eq( 2, s.config.shards.count() , "initial server count wrong" ); s.config.databases.insert({_id: 'local', partitioned: false, primary: 'shard0000'}); s.config.databases.insert({_id: 'needToMove', partitioned: false, primary: 'shard0000'}); +s.config.getLastError(); // first remove puts in draining mode, the second tells me a db needs to move, the third actually removes assert( s.admin.runCommand( { removeshard: "shard0000" } ).ok , "failed to start draining shard" ); |