[CXX-1252] Tailable cursors only work once Created: 13/Mar/17 Updated: 28/Feb/18 Resolved: 17/Mar/17 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Implementation |
| Affects Version/s: | 3.1.1 |
| Fix Version/s: | 3.2.0-rc0, 3.1.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | David Golden | Assignee: | David Golden |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||
| Issue Links: |
|
||||
| Description |
|
When using a tailable cursor, only the first iteration to cursor::end() works and subsequent iteration attempts find nothing. See the attached file for an example. This is almost certainly a consequence of the way cursors are marked dead in the fix for CXX-1001 and CXX-1100, which should not happen if the cursor is tailable. I also see that we have no integration tests for tailable cursors, or we'd have caught this breakage earlier. |
| Comments |
| Comment by Githook User [ 17/Mar/17 ] |
|
Author: {u'username': u'xdg', u'name': u'David Golden', u'email': u'xdg@xdg.me'}Message: The way cursors were marked dead to support multiple iterators This commit makes cursors know if they are tailable and rather than |