Skip to content

Commit 083498b

Browse files
committed
CDRIVER411 never send a negative nToReturn
Remove logic that sends nToReturn to avoid missing documents that don't fit in the initial batch.
1 parent 028176b commit 083498b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/mongoc/mongoc-cursor.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ _mongoc_n_return (mongoc_cursor_t * cursor)
9696
/* if we didn't, just use the remaining */
9797
r = remaining;
9898
}
99-
100-
r = -r;
10199
}
102100

103101
return r;

0 commit comments

Comments
 (0)