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

invalidating cursors for one collection may kill cursors for another collection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.9.0
    • Component/s: Querying
    • Labels:
      None
    • Operating System:
      ALL

      Description

      /* todo: this implementation is incomplete. we use it as a prefix for dropDatabase, which
      works fine as the prefix will end with '.'. however, when used with drop and
      dropIndexes, this could take out cursors that belong to something else – if you
      drop "foo", currently, this will kill cursors for "foobar".
      */
      void ClientCursor::invalidate(const char *nsPrefix) {

      This gets called for example when we drop a collection or an index in a collection, rename a collection, etc.

      This also has implications for cases where we return partial data when a yield cursor is dropped.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              redbeard0531 Mathias Stearn
              Reporter:
              aaron Aaron Staple
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: