Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BAAS-32412: add nil check in mem usage for key and item in builtin_set #124

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

Gabri3l
Copy link

@Gabri3l Gabri3l commented Jun 26, 2024

No description provided.

Comment on lines -367 to -369
// We still want to account for both key and value if we return a non-zero value on error.
// This could otherwise skew the estimate when in reality key/value pairs contribute to
// mem usage together.
Copy link
Author

Choose a reason for hiding this comment

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

I removed this on purpose to align with how we normally calculate mem usage, can refactor later if we notice this being an issue but I expect it to be rare.

@Gabri3l Gabri3l requested a review from nathantfrank June 26, 2024 19:36
@Gabri3l Gabri3l merged commit bb9e63a into mongodb-forks:realm Jun 26, 2024
2 of 6 checks passed
@Gabri3l Gabri3l deleted the fix-nil-builtin-set branch June 26, 2024 19:44
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