invalidating cursors for one collection may kill cursors for another collection

XMLWordPrintableJSON

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

      /* 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 Stearn
            Reporter:
            Aaron Staple (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: