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

invalidating cursors for one collection may kill cursors for another collection

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.9.0
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • ALL

      /* 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.

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: