From 7f8bbabce8765ad9055745963241fe9d7ae2c0a1 Mon Sep 17 00:00:00 2001 From: David Storch Date: Fri, 3 Jun 2022 15:45:16 +0000 Subject: SERVER-66047 Fix the shell's exhaust impl to work with limit --- src/mongo/client/dbclient_cursor.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/mongo') diff --git a/src/mongo/client/dbclient_cursor.cpp b/src/mongo/client/dbclient_cursor.cpp index bdb299fc040..735c8a28d00 100644 --- a/src/mongo/client/dbclient_cursor.cpp +++ b/src/mongo/client/dbclient_cursor.cpp @@ -444,7 +444,6 @@ void DBClientCursor::requestMore() { void DBClientCursor::exhaustReceiveMore() { verify(_cursorId); verify(_batch.pos == _batch.objs.size()); - uassert(40675, "Cannot have limit for exhaust query", _limit == 0); Message response; verify(_client); uassertStatusOK( -- cgit v1.2.1