diff options
author | Qingyang Chen <qingyang.chen@10gen.com> | 2015-07-28 13:24:25 -0400 |
---|---|---|
committer | Qingyang Chen <qingyang.chen@10gen.com> | 2015-08-05 14:59:43 -0400 |
commit | 9dcfc9cc63254abb6114123165033a12bf41ec8b (patch) | |
tree | c7b3918b6cbc665b03a075d2c46fe46e00c69839 /jstests/sharding/cursor_cleanup.js | |
parent | c746d2606b33c8848de0a44aeedca46473f693a1 (diff) | |
download | mongo-9dcfc9cc63254abb6114123165033a12bf41ec8b.tar.gz |
SERVER-16398 Remove support for "cursorInfo" command
Diffstat (limited to 'jstests/sharding/cursor_cleanup.js')
-rw-r--r-- | jstests/sharding/cursor_cleanup.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/jstests/sharding/cursor_cleanup.js b/jstests/sharding/cursor_cleanup.js index 9f2ad60f577..9e345a94223 100644 --- a/jstests/sharding/cursor_cleanup.js +++ b/jstests/sharding/cursor_cleanup.js @@ -43,22 +43,20 @@ assert.neq(null, unshardedCursor.next()); jsTest.log("Check whether the cursor is registered in the cursor info."); -var cursorInfo = admin.runCommand({ cursorInfo : true }); +var cursorInfo = admin.serverStatus().metrics.cursor; printjson(cursorInfo); -assert.eq(cursorInfo.sharded, 1); -assert.eq(cursorInfo.refs, 1); +assert.eq(cursorInfo.open.multiTarget, 1); jsTest.log("End the cursors."); shardedCursor.itcount(); unshardedCursor.itcount(); -var cursorInfo = admin.runCommand({ cursorInfo : true }); +var cursorInfo = admin.serverStatus().metrics.cursor;; printjson(cursorInfo); -assert.eq(cursorInfo.sharded, 0); -assert.eq(cursorInfo.refs, 0); +assert.eq(cursorInfo.open.multiTarget, 0); jsTest.log("DONE!"); |