-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: libmongoc
-
None
mongoc_cursor_more returns true until mongoc_cursor_next already moved to the end of the cursor. So if I have a collection with one document, mongoc_cursor_more will still return true after I have read the document using mongoc_cursor_next. Only after mongoc_cursor_next returns false, so does mongoc_cursor_more.
Here is some example code to illustrate the problem:
http://pastebin.com/fQwX6riE
If I have to query mongoc_cursor_next anyway I'm not sure how mongoc_cursor_more might be useful.
- duplicates
-
CDRIVER-516 Clear instructions for mongoc_cursor_more
- Closed