Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2899

Remove code for MongoDB < 3.6 support

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.0
    • Affects Version/s: None
    • Component/s: None
    • None

      Now that we dropped support for MongoDB 2.6, 3.0, 3.2, and 3.4 in PYTHON-2833 we can remove a fair bit of code for those old server versions. For example:

      $ git grep "max_wire_version <" | tee
      auth.py:    if credentials.username is None and sock_info.max_wire_version < 5:
      auth_aws.py:    if sock_info.max_wire_version < 9:
      bulk.py:        if sock_info.max_wire_version < 5:
      bulk.py:        if sock_info.max_wire_version < 6 and self.uses_array_filters:
      change_stream.py:                            (exc._max_wire_version < 9 and
      client_session.py:            if sock_info.max_wire_version < 13:
      collection.py:            if sock_info.max_wire_version < 5:
      collection.py:            if sock_info.max_wire_version < 6:
      collection.py:            if sock_info.max_wire_version < 5:
      collection.py:            if sock_info.max_wire_version < 5:
      collection.py:            if sock_info.max_wire_version < 5:
      collection.py:                if sock_info.max_wire_version < 6:
      collection.py:                if sock_info.max_wire_version < 8:
      message.py:        if sock_info.max_wire_version < 5 and self.collation is not None:
      message.py:        if sock_info.max_wire_version < 4 and self.allow_disk_use is not None:
      mongo_client.py:                        sock_info.max_wire_version < 8):
      pool.py:        if (read_concern and self.max_wire_version < 4
      pool.py:        elif self.max_wire_version < 5 and collation is not None:
      topology.py:                if is_shutting_down or (err_ctx.max_wire_version <= 7):
      topology_description.py:                and s.max_wire_version < common.MIN_SUPPORTED_WIRE_VERSION)
      

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: