From 07d6e82a05dbe36f94d6a32b9378b0ddabdc8045 Mon Sep 17 00:00:00 2001 From: Eric Cox Date: Wed, 21 Jul 2021 19:03:16 +0000 Subject: SERVER-57461 Remove SPLIT_LIMITED_SORT and associated QueryPlanner code --- src/mongo/scripting/mozjs/mongo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/scripting/mozjs/mongo.cpp') diff --git a/src/mongo/scripting/mozjs/mongo.cpp b/src/mongo/scripting/mozjs/mongo.cpp index fe7bba442bb..52c85259573 100644 --- a/src/mongo/scripting/mozjs/mongo.cpp +++ b/src/mongo/scripting/mozjs/mongo.cpp @@ -363,14 +363,14 @@ void MongoBase::Functions::find::call(JSContext* cx, JS::CallArgs args) { if (haveFields) fields = ValueWriter(cx, args.get(2)).toBSON(); - int nToReturn = ValueWriter(cx, args.get(3)).toInt32(); + int limit = ValueWriter(cx, args.get(3)).toInt32(); int nToSkip = ValueWriter(cx, args.get(4)).toInt32(); int batchSize = ValueWriter(cx, args.get(5)).toInt32(); int options = ValueWriter(cx, args.get(6)).toInt32(); std::unique_ptr cursor(conn->query(NamespaceString(ns), q, - nToReturn, + limit, nToSkip, haveFields ? &fields : nullptr, options, -- cgit v1.2.1