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

Always set request id

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.0.rc0
    • Affects Version/s: None
    • Component/s: Wire Protocol
    • None

      The driver currently sets request id on wire protocol messages on demand. This makes the code unnecessarily confusing and makes the driver mutate messages after they have been initialized, which is not good. Since request id must be populated eventually anyway and there's no code in the driver that creates messages and then does not send them, there is no performance loss to setting request id in the constructor and this will make the code easier to follow.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: