Now that GODRIVER-2099 is complete, we don't need to support MongoDB 3.4 and earlier versions any more. That means we can remove a bunch of code that is no longer used, including
- https://github.com/mongodb/mongo-go-driver/blob/65cd095b164d3bde0cb0a007d986eaa99c337035/x/mongo/driver/operation.go#L1099
- https://github.com/mongodb/mongo-go-driver/blob/65cd095b164d3bde0cb0a007d986eaa99c337035/x/mongo/driver/list_collections_batch_cursor.go#L36-L41
We can also remove all checks for max wire version < 6, including
- https://github.com/mongodb/mongo-go-driver/blob/65cd095b164d3bde0cb0a007d986eaa99c337035/x/mongo/driver/operation.go#L1083-L1086
- https://github.com/mongodb/mongo-go-driver/blob/65cd095b164d3bde0cb0a007d986eaa99c337035/mongo/description/server_selector.go#L181-L187
- https://github.com/mongodb/mongo-go-driver/blob/65cd095b164d3bde0cb0a007d986eaa99c337035/x/mongo/driver/auth/default.go#L92-L98
- https://github.com/mongodb/mongo-go-driver/blob/65cd095b164d3bde0cb0a007d986eaa99c337035/x/mongo/driver/auth/x509.go#L52-L54
- https://github.com/mongodb/mongo-go-driver/blob/65cd095b164d3bde0cb0a007d986eaa99c337035/x/mongo/driver/batch_cursor.go#L171-L185
- https://github.com/mongodb/mongo-go-driver/blob/65cd095b164d3bde0cb0a007d986eaa99c337035/x/mongo/driver/operation.go#L1907-L1909
- https://github.com/mongodb/mongo-go-driver/blob/65cd095b164d3bde0cb0a007d986eaa99c337035/x/mongo/driver/operation/list_collections.go#L57-L59
Definition of done:
- All code supporting MongoDB 3.4 and earlier is removed.
- causes
-
GODRIVER-2935 Use OP_QUERY in connection handshakes
- Closed
- is duplicated by
-
GODRIVER-2861 Merge driver.ListCollectionsBatchCursor into driver.BatchCursor
- Closed
- is related to
-
GODRIVER-3054 OP_QUERY isMaster used in load balancer mode
- Closed
-
GODRIVER-2099 Set minWireVersion to 6 (MongoDB 3.6)
- Closed
- related to
-
GODRIVER-2901 Separate batching, retry, and single-operation execution logic
- Backlog