Skip to content

PHP-1741: Remove getServer from APM event classes#1652

Merged
alcaeus merged 3 commits intomongodb:v2.xfrom
jmikola:2.0-phpc-1741
Sep 18, 2024
Merged

PHP-1741: Remove getServer from APM event classes#1652
alcaeus merged 3 commits intomongodb:v2.xfrom
jmikola:2.0-phpc-1741

Conversation

@jmikola
Copy link
Contributor

@jmikola jmikola commented Sep 17, 2024

https://jira.mongodb.org/browse/PHPC-1741

This also removes the internal Manager reference.

This also removes the internal Manager reference.
Copy link
Member

@alcaeus alcaeus left a comment

Choose a reason for hiding this comment

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

Changes look good, but there's a leftover field in the command event structs that's no longer needed.

}

if (!Z_ISUNDEF(intern->manager)) {
zval_ptr_dtor(&intern->manager);
Copy link
Member

Choose a reason for hiding this comment

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

You can also remove the manager field from the corresponding struct as it's no longer used. Same applies to the other command event structs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, thanks for catching that ✌️

@jmikola jmikola requested a review from alcaeus September 17, 2024 15:12
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