Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-31138

ClusterClientCursorImpl isn't a safe raii type after releaseCursor

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Query 2019-07-29, Query 2019-08-12, Query 2019-08-26
    • Case:

      Description

      The cluster client cursor impl returned by CursorEntry->releaseCursor() isn't safe to destroy. If it isn't put into a pinned cursor, it will invariant on destruction (due to getting cleaned up without actually being in the manager).

      We probably shouldn't have types like that (and mongod cursors don't work that way).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              george.wangensteen George Wangensteen
              Reporter:
              jason.carey Jason Carey
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: