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

Cleanup pass for CursorManager/getMore()/listCollections/listIndexes

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0-rc6
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible

      • Extend jstests for listCollections/listIndexes (test output format, the batchSize option, default batching, and killing/timeout if feasible).
      • Other commands that return cursors should use Command::appendCursorResponseObject() helper.
      • Change jstests invoking listCollections/listIndexes to not send "cursor: {}" option.
      • Wrap GlobalCursorIdCache::_secureCreate in owning smart pointer (fixes memory leak on shutdown). (covered by SERVER-16661)
      • Figure out if CursorManager::ns() should actually exist (consider also converting CursorManager into an interface, with a "collection" implementation and a "global" implementation, and unit test if feasible).
      • listIndexes output "cursor.ns" field should be "<database>.$cmd.listIndexes.<collection>".
      • Rename MockStage (new name: BufferedDataStage?).

            Assignee:
            greg.mckeon@mongodb.com Gregory McKeon (Inactive)
            Reporter:
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: