Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1252

Tailable cursors only work once

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc0, 3.1.4
    • Affects Version/s: 3.1.1
    • Component/s: Implementation
    • Labels:
      None

      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.

            Assignee:
            david.golden@mongodb.com David Golden
            Reporter:
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: