Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-198

Always use command cursor 'ns' value for OP_GET_MORE

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • None

      Some drivers ignore the 'ns' field in the server's command cursor document for OP_GET_MORE. This hasn't resulted in any bug reports so far because the 'ns' value for an aggregate or parallelCollectionScan cursor is the same as the namespace of the collection running the command.

      For example, in python:

      >>> c.foo.bar.full_name
      u'foo.bar'
      >>> c.foo.command("aggregate", "bar", pipeline=[], cursor={})['cursor']['ns']
      u'foo.bar'
      

      However, the namespaces don't match for the new listCollections and listIndexes command. Again, in python:

      >>> c.foo.bar.full_name
      u'foo.bar'
      >>> c.foo.command("listCollections", 'bar', cursor={})['cursor']['ns']
      u'foo.$cmd.listCollections'
      

      The purpose of this ticket is to ensure that all drivers always use the 'ns' value for OP_GET_MORE, regardless of the command.

            Assignee:
            barrie Barrie Segal
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: