Skip to content

This should fix bug #8296 : Crash in TipCache::findStates#8550

Merged
hvlad merged 2 commits intomasterfrom
work/gh_8296_tpc
Jul 1, 2025
Merged

This should fix bug #8296 : Crash in TipCache::findStates#8550
hvlad merged 2 commits intomasterfrom
work/gh_8296_tpc

Conversation

@hvlad
Copy link
Copy Markdown
Member

@hvlad hvlad commented May 4, 2025

No description provided.

@hvlad hvlad self-assigned this May 4, 2025
@hvlad hvlad requested a review from dyemanov May 4, 2025 09:31
@hvlad hvlad linked an issue May 4, 2025 that may be closed by this pull request
Comment thread src/jrd/tpc.cpp
{
Sync sync(&m_sync_status, FB_FUNCTION);
getTransactionStatusBlock(header, blockNumber, sync);
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Wouldn't it be better to move Sync outside of the loop?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It should be unlocked before call of getTransactionStatusBlock() anyway.
mapInventoryPages() run once, no need to optimize it in this place, imho

@hvlad hvlad merged commit a20f9bb into master Jul 1, 2025
50 checks passed
hvlad added a commit that referenced this pull request Jul 1, 2025
* This should fix bug #8296 : Crash in TipCache::findStates

* Correction
dand-oss pushed a commit to dand-oss/firebird that referenced this pull request Jan 21, 2026
…irebirdSQL#8550)

* This should fix bug FirebirdSQL#8296 : Crash in TipCache::findStates

* Correction
@hvlad hvlad deleted the work/gh_8296_tpc branch February 16, 2026 17:33
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.

Crash in TipCache::findStates

2 participants