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

Always set request id

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.7.0.rc0
    • Wire Protocol
    • None

    Description

      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.

      Attachments

        Activity

          People

            oleg.pudeyev@mongodb.com Oleg Pudeyev
            oleg.pudeyev@mongodb.com Oleg Pudeyev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: