Skip to content

fix #444: use unsigned bit fields in ObTableBackupFlag to prevent sign ove…#534

Open
ep-12221 wants to merge 1 commit intooceanbase:developfrom
ep-12221:fix/issue-444
Open

fix #444: use unsigned bit fields in ObTableBackupFlag to prevent sign ove…#534
ep-12221 wants to merge 1 commit intooceanbase:developfrom
ep-12221:fix/issue-444

Conversation

@ep-12221
Copy link
Copy Markdown

@ep-12221 ep-12221 commented Apr 13, 2026

The bit-field members has_backup_flag_, has_local_flag_, and reserved_ in ObTableBackupFlag were declared using signed types (ObTableHasBackupFlag::FLAG and int64_t). When stored in a 1-bit bit-field, signed types can only represent the values 0 and -1 (not 0 and 1), causing comparison logic like has_backup_flag_ == ObTableHasBackupFlag::HAS_BACKUP (which compares against 1) to always evaluate to false.

Task Description

fixed #444

Solution Description

Passed Regressions

Upgrade Compatibility

Other Information

Release Note

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 13, 2026

CLA assistant check
All committers have signed the CLA.

@ep-12221 ep-12221 changed the title fix: use unsigned bit fields in ObTableBackupFlag to prevent sign ove… fix #444: use unsigned bit fields in ObTableBackupFlag to prevent sign ove… Apr 13, 2026
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.

mysqltest case fts_index.create_index_on_mv_table fails with error 1210 on Windows when creating materialized view

2 participants