Skip to content

Commit 7ee0b02

Browse files
committed
SERVER-12398 uassert instead of log warning on getMore runner error
1 parent 0ffa44a commit 7ee0b02

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mongo/db/query/new_find.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,10 @@ namespace mongo {
233233
bool saveClientCursor = false;
234234

235235
if (Runner::RUNNER_DEAD == state || Runner::RUNNER_ERROR == state) {
236-
// XXX: Do we need to propagate this error to caller?
236+
// Propagate this error to caller.
237237
if (Runner::RUNNER_ERROR == state) {
238-
warning() << "getMore runner error: " << WorkingSetCommon::toStatusString(obj);
238+
uasserted(17406, "getMore runner error: " +
239+
WorkingSetCommon::toStatusString(obj));
239240
}
240241

241242
// If we're dead there's no way to get more results.

0 commit comments

Comments
 (0)