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

Add method to detect dead tailable cursor

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, users have no way of knowing that a tailable cursor is "dead" – i.e. that there are no more documents to iterate and the server has returned a cursor_id of zero.

      After CDRIVER-2093 is released in libmongoc 1.7.0, we can add a method like can_tail which is always false for non-tailable cursors and for tailable (and tailable-await) cursors passes through the value of mongoc_cursor_more.

            Assignee:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Reporter:
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: