Skip to content

Conversation

0xAX
Copy link

@0xAX 0xAX commented Apr 19, 2024

If the UNIV_ZIP_DEBUG flag is enabled during build, the build process may fail with the error:

In function ‘bool buf_LRU_block_remove_hashed(buf_page_t*, bool, bool)’: error: ‘struct buf_block_t’ has no member named ‘index’
                                    ((buf_block_t *)bpage)->index));
                                                            ^~~~~

Because the 'index' field was moved from the buf_block_t structure to the buf_block_t.ahi_t in the d7114b1 commit.

The second error appears in the page_delete_rec(). Since the page_zip parameter was removed from the function in the 85f9abf, the assert checks that are enabled in a case of UNIV_ZIP_DEBUG are failed. As there is no such parameter in the page_delete_rec() function anymore the both assertions are removed.

The commit fixes the both compilation errors.

If the UNIV_ZIP_DEBUG is enabled during build, the build process may
fail with the error:

In function ‘bool buf_LRU_block_remove_hashed(buf_page_t*, bool, bool)’:
error: ‘struct buf_block_t’ has no member named ‘index’
                                    ((buf_block_t *)bpage)->index));
                                                            ^~~~~

Because the 'index' field was moved from the buf_block_t structure to
the buf_block_t.ahi_t in the d7114b1 commit.

The second error appears in the page_delete_rec(). Since the
'page_zip' parameter was removed from the function, the assert checks
that are enabled in a case of UNIV_ZIP_DEBUG are failed. As there is
no such parameter in the page_delete_rec() function anymore the both
assertions are removed.

The commit fixes the both compilation errors.

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Please confirm this code is submitted under the terms of the OCA (Oracle's Contribution Agreement) you have previously signed by cutting and pasting the following text as a comment:
"I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it."
Thanks

@0xAX
Copy link
Author

0xAX commented Apr 19, 2024

I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Your code has been assigned to an internal queue. Please follow
bug http://bugs.mysql.com/bug.php?id=114708 for updates.
Thanks

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.

2 participants