Skip to content

runtime: add missing _end_locking_query calls in fd_runtime_freeze #5548

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

two-heart
Copy link
Collaborator

No description provided.

@@ -282,19 +282,22 @@ fd_runtime_freeze( fd_exec_slot_ctx_t * slot_ctx, fd_spad_t * runtime_spad ) {
fd_epoch_leaders_t const * leaders = fd_bank_epoch_leaders_locking_query( slot_ctx->bank );
if( FD_UNLIKELY( !leaders ) ) {
FD_LOG_WARNING(( "fd_runtime_freeze: leaders not found" ));
fd_bank_epoch_leaders_end_locking_query( slot_ctx->bank );
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the lock really taken if locking_query returns NULL?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes

@ibhatt-jumptrading ibhatt-jumptrading added this pull request to the merge queue Jul 10, 2025
Merged via the queue into firedancer-io:main with commit 6c0fcf1 Jul 10, 2025
11 checks passed
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.

3 participants