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
Part of the pages of the second level blobs is not released when deleting relations. [CORE5618] #5884
Comments
Commented by: @Logash Test: create database 'localhost:D:\RedSoft\database\RELEASE_PAGE.FDB' user 'SYSDBA' password 'masterkey'; CREATE TABLE NEW_TABLE ( ALTER TABLE NEW_TABLE ADD CONSTRAINT PK_NEW_TABLE PRIMARY KEY (ID); ADD NEW_TABLE; DROP TABLE NEW_TABLE; Launched the gfix utility: ____________________________________________________________________________ DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 DESKTOP-4IG43PM Thu Sep 28 16:38:14 2017 ____________________________________________________________________________ DESKTOP-4IG43PM Thu Sep 28 16:44:30 2017 DESKTOP-4IG43PM Thu Sep 28 16:44:30 2017 |
Commented by: @hvlad Fixed by Denis Logashov, |
Modified by: @hvladstatus: Open [ 1 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: 3.0.3 [ 10810 ] Fix Version: 4.0 Beta 1 [ 10750 ] |
Modified by: @pavel-zotovstatus: Resolved [ 5 ] => Resolved [ 5 ] QA Status: No test => Done successfully |
Modified by: @pavel-zotovstatus: Resolved [ 5 ] => Closed [ 6 ] |
Submitted by: @Logash
Problem in the function "delete_tail" in the block where the pages of blobs of the second level are released. When you get the end of data containing page numbers of second-level blobs, you do not need to subtract the header size, otherwise 7 pages remain occupied.
const ULONG * const end2 = page2 + ((bpage-> blp_length - BLP_SIZE) / sizeof (ULONG));
If I'm right I prepare a pull request.
Commits: 1824acb bc845f6 9860731 FirebirdSQL/fbt-repository@ad5695c
The text was updated successfully, but these errors were encountered: