Tailable cursors only work once

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.2.0-rc0, 3.1.4
    • Affects Version/s: 3.1.1
    • Component/s: Implementation
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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.

        1. tailable-broken.cpp
          1 kB
          David Golden

              Assignee:
              David Golden
              Reporter:
              David Golden
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: