Skip to content

fix: insert entry during iterating over a map #3398

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

Merged

Conversation

fukua95
Copy link
Contributor

@fukua95 fukua95 commented Jun 8, 2025

Inserting data while iterating over a map is not a good practice and may lead to undefined behavior.

Signed-off-by: fukua95 <fukua95@gmail.com>
@ndyakov
Copy link
Member

ndyakov commented Jun 9, 2025

Looks good, thank you!

@ndyakov ndyakov merged commit 858ecda into redis:master Jun 9, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants