Skip to content

Conversation

connorsmacd
Copy link
Contributor

@connorsmacd connorsmacd commented Sep 9, 2025

Reference: https://jira.mongodb.org/browse/CDRIVER-4722

Motivation

Now that our minimum wire version is 4.2, we can use exclusively use OP_MSG for cursors.

Changes

  • Remove all support for legacy opcodes in cursor implementation and tests.
  • Simplify cursor implementation by removing dual code path logic.

@connorsmacd connorsmacd changed the title CDRIVER-4722 delete legacy op cursor code CDRIVER-4722 remove cursor support for legacy op codes Sep 11, 2025
@connorsmacd connorsmacd changed the title CDRIVER-4722 remove cursor support for legacy op codes CDRIVER-4722 remove cursor support for legacy opcodes Sep 11, 2025
@connorsmacd connorsmacd marked this pull request as ready for review September 11, 2025 18:29
@connorsmacd connorsmacd requested a review from a team as a code owner September 11, 2025 18:29
@kevinAlbs kevinAlbs requested a review from mdb-ad September 11, 2025 18:30
@@ -569,8 +569,6 @@ set (MONGOC_SOURCES
${PROJECT_SOURCE_DIR}/src/mongoc/mongoc-cursor-cmd-deprecated.c
${PROJECT_SOURCE_DIR}/src/mongoc/mongoc-cursor-find.c
${PROJECT_SOURCE_DIR}/src/mongoc/mongoc-cursor-find-cmd.c
${PROJECT_SOURCE_DIR}/src/mongoc/mongoc-cursor-find-opquery.c
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: before closing CDRIVER-4722, set PHP Team Attention Needed: Needed. I expect the file removal will require an update to the PHP driver build listing of source files: https://github.com/mongodb/mongo-php-driver/blob/5bf907601604618556de9698ed26a4b5a4ad54b4/config.m4#L363

Copy link
Collaborator

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Yay for code removal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants