summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/getmore_cmd.cpp
diff options
context:
space:
mode:
authorIan Boros <ian.boros@mongodb.com>2022-04-05 21:59:50 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-07 22:23:42 +0000
commit5b5b505f0db2e145f40bde4e2ac2d5c56bc0b263 (patch)
treea0b3e72faf4ba7b5e68ddd93bf8d49ed544804d6 /src/mongo/db/commands/getmore_cmd.cpp
parent7038719c685f2d858f69717e1939e521e6f2d9c0 (diff)
downloadmongo-5b5b505f0db2e145f40bde4e2ac2d5c56bc0b263.tar.gz
SERVER-65270 Fix bug related to queries on large documents not respecting the sort option
Diffstat (limited to 'src/mongo/db/commands/getmore_cmd.cpp')
-rw-r--r--src/mongo/db/commands/getmore_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/getmore_cmd.cpp b/src/mongo/db/commands/getmore_cmd.cpp
index 9fe8b68b918..b3c00996ec6 100644
--- a/src/mongo/db/commands/getmore_cmd.cpp
+++ b/src/mongo/db/commands/getmore_cmd.cpp
@@ -388,7 +388,7 @@ public:
// If adding this object will cause us to exceed the message size limit, then we
// stash it for later.
if (!FindCommon::haveSpaceForNext(obj, *numResults, nextBatch->bytesUsed())) {
- exec->enqueue(obj);
+ exec->stashResult(obj);
break;
}