Skip to content

Add missing synchronization to cached vectors of known pages#8069

Merged
dyemanov merged 2 commits intomasterfrom
page-vector-sync
Apr 4, 2024
Merged

Add missing synchronization to cached vectors of known pages#8069
dyemanov merged 2 commits intomasterfrom
page-vector-sync

Conversation

@dyemanov
Copy link
Copy Markdown
Member

@dyemanov dyemanov commented Apr 3, 2024

It fixes races (causing crashes) when vectors are accessed / reallocated under high concurrent load.
The original patch is implemented by Vlad Khorsun. Slightly optimized and stress-tested by myself.

@dyemanov dyemanov merged commit a6bf341 into master Apr 4, 2024
@dyemanov dyemanov deleted the page-vector-sync branch April 4, 2024 14:54
hvlad added a commit that referenced this pull request May 27, 2024
Note, sequence numbers could be out of physical order of records.
hvlad pushed a commit that referenced this pull request Aug 27, 2024
hvlad pushed a commit that referenced this pull request Aug 27, 2024
dyemanov added a commit that referenced this pull request Nov 16, 2024
* Add missing synchronization to cached vectors of known pages. Thanks to Vlad Khorsun.

* Fixed typo
dyemanov pushed a commit that referenced this pull request Nov 16, 2024
Note, sequence numbers could be out of physical order of records.
@mrotteveel mrotteveel added the rlsnotes60: no Intentionally not added to the Firebird 6.0 release notes. label Mar 3, 2026
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.

4 participants