Skip to content

fix: insert entry during iterating over a map#3398

Merged
ndyakov merged 1 commit into
redis:masterfrom
cxljs:fix/map-insert-entry-during-iteration
Jun 9, 2025
Merged

fix: insert entry during iterating over a map#3398
ndyakov merged 1 commit into
redis:masterfrom
cxljs:fix/map-insert-entry-during-iteration

Conversation

@cxljs

@cxljs cxljs commented Jun 8, 2025

Copy link
Copy Markdown
Contributor

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

ndyakov commented Jun 9, 2025

Copy link
Copy Markdown
Member

Looks good, thank you!

@ndyakov ndyakov merged commit 858ecda into redis:master Jun 9, 2025
16 checks passed
ofekshenawa pushed a commit to ofekshenawa/go-redis that referenced this pull request Jun 30, 2025
Signed-off-by: fukua95 <fukua95@gmail.com>
ofekshenawa pushed a commit that referenced this pull request Aug 10, 2025
Signed-off-by: fukua95 <fukua95@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants