Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-514

Copy more options to count cursor

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

      It seems that currently there are a number of cursor-specific query options that aren't copied for count queries, because count queries involve instantiating a new cursor.

      The specific ones I've run into are that specifying a read preference (:read) or a comment (:comment) do not get copied when the properties from the original cursor are copied over.

      Before writing the simple patch to just copy those fields specifically, wanted to check if there was something more generic to be done.

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            evan@stripe.com Evan Broder
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: