diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2015-09-15 17:20:23 -0400 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2015-09-15 17:20:53 -0400 |
commit | bded2a3deda7dd1152d69b3c5892b59eea7d7ff2 (patch) | |
tree | 86a4fb5699dc370598885e934831860d44a4bbab /src/mongo/scripting/mozjs/cursor.cpp | |
parent | 7f12a49a2c78b94e5414d060ddcdda0cc7b39dd2 (diff) | |
download | mongo-bded2a3deda7dd1152d69b3c5892b59eea7d7ff2.tar.gz |
Revert "SERVER-17792 Kill cursors when query limit is reached in the shell"
This reverts commit aaa8ea34945e4d4330a2d71c69c81f51824cf251.
Diffstat (limited to 'src/mongo/scripting/mozjs/cursor.cpp')
-rw-r--r-- | src/mongo/scripting/mozjs/cursor.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/mongo/scripting/mozjs/cursor.cpp b/src/mongo/scripting/mozjs/cursor.cpp index cceecba98bb..8f6bb7b540c 100644 --- a/src/mongo/scripting/mozjs/cursor.cpp +++ b/src/mongo/scripting/mozjs/cursor.cpp @@ -38,12 +38,11 @@ namespace mongo { namespace mozjs { -const JSFunctionSpec CursorInfo::methods[6] = { +const JSFunctionSpec CursorInfo::methods[5] = { MONGO_ATTACH_JS_FUNCTION(hasNext), MONGO_ATTACH_JS_FUNCTION(next), MONGO_ATTACH_JS_FUNCTION(objsLeftInBatch), MONGO_ATTACH_JS_FUNCTION(readOnly), - MONGO_ATTACH_JS_FUNCTION(kill), JS_FS_END, }; @@ -119,14 +118,5 @@ void CursorInfo::Functions::readOnly(JSContext* cx, JS::CallArgs args) { args.rval().set(args.thisv()); } -void CursorInfo::Functions::kill(JSContext* cx, JS::CallArgs args) { - auto cursor = getCursor(args); - - if (cursor) - cursor->kill(); - - args.rval().setUndefined(); -} - } // namespace mozjs } // namespace mongo |