Skip to content

Commit bc50382

Browse files
two-heartmjain-jump
authored andcommitted
runtime: add missing _end_locking_query calls in upsert_vote_account
1 parent f9ff20d commit bc50382

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/flamenco/runtime/program/fd_vote_program.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2963,6 +2963,7 @@ upsert_vote_account( fd_txn_account_t * vote_account,
29632963

29642964
if( FD_UNLIKELY( vote_account_keys_pool==NULL ) ) {
29652965
fd_bank_vote_account_keys_end_locking_modify( bank );
2966+
fd_bank_stakes_end_locking_query( bank );
29662967
FD_LOG_DEBUG(( "Vote accounts pool does not exist" ));
29672968
return;
29682969
}
@@ -2993,6 +2994,7 @@ upsert_vote_account( fd_txn_account_t * vote_account,
29932994
fd_bank_vote_account_keys_end_locking_modify( bank );
29942995
} else {
29952996
fd_bank_vote_account_keys_end_locking_modify( bank );
2997+
fd_bank_stakes_end_locking_query( bank );
29962998
remove_vote_account( vote_account, bank );
29972999
}
29983000
}

0 commit comments

Comments
 (0)