diff options
author | Jason Carey <jcarey@argv.me> | 2017-09-29 12:18:53 -0400 |
---|---|---|
committer | Jason Carey <jcarey@argv.me> | 2017-10-03 16:50:12 -0400 |
commit | f23002e965d29158505575d09432faf403efcb56 (patch) | |
tree | 5794d12d94376b7cc55186862e4a43d850cab4d5 /jstests/core/list_collections_filter.js | |
parent | 8a4b356682d9a3d39049c2d51ac4f10ed1e6d07e (diff) | |
download | mongo-f23002e965d29158505575d09432faf403efcb56.tar.gz |
SERVER-30848 make shell getMores use sessions
The shell should attach the logical session used to initiate cursors
(via find or aggregate) and use it for successive getMores.
Diffstat (limited to 'jstests/core/list_collections_filter.js')
-rw-r--r-- | jstests/core/list_collections_filter.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/list_collections_filter.js b/jstests/core/list_collections_filter.js index 38c99fe13ca..41d80d0a344 100644 --- a/jstests/core/list_collections_filter.js +++ b/jstests/core/list_collections_filter.js @@ -19,8 +19,8 @@ filter = {}; } - var cursor = new DBCommandCursor(mydb.getMongo(), - mydb.runCommand("listCollections", {filter: filter})); + var cursor = + new DBCommandCursor(mydb, mydb.runCommand("listCollections", {filter: filter})); function stripToName(result) { return result.name; } |