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

Scheduler: fix panic in nodedb benchmark #4120

Merged
merged 3 commits into from
Jan 3, 2025

Conversation

robertdavidsmith
Copy link
Collaborator

@robertdavidsmith robertdavidsmith commented Jan 3, 2025

This was broken as it called GetNode in a 2nd transaction before the 1st transaction was committed, so GetNode returned nil, causing a nil pointer dereference panic later. Just do everything in the 1st transaction.

Signed-off-by: Robert Smith <robertdavidsmith@yahoo.com>
Signed-off-by: Robert Smith <robertdavidsmith@yahoo.com>
@robertdavidsmith robertdavidsmith enabled auto-merge (squash) January 3, 2025 16:59
@robertdavidsmith robertdavidsmith merged commit 3a3fc36 into master Jan 3, 2025
20 checks passed
@robertdavidsmith robertdavidsmith deleted the sched-fix-nodedb-benchmark branch January 3, 2025 17:06
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